Is there any way to run a search on a specific string...

How to apply eValid to functional testing of web applications.

Is there any way to run a search on a specific string...

Postby Tse888 » Mon Sep 16, 2013 11:57 am

Is there any way a search on a specified string and then click one of the resulting URLs at random?
Tse888
 
Posts: 1
Joined: Mon Sep 16, 2013 11:51 am

Re: Is there any way to run a search on a specific string...

Postby eValid » Tue Sep 24, 2013 12:17 pm

Yes, there is.

This would be a kind of "random testing" because, presumably, you don't know where the string that you are searching for is going to show up in the web page, or even if it shows up in the web page at all.

So, if you assume that it IS in the web page, then the eValid script would include a basic IndexFindElement command that identifies the string that you're looking for Here is the IndexFindElement Command Description. As you can see, you could search UP or DOWN on the page (from the bottom or from the top). And, you can search for a visible string or something deeper in the DOM for which you only know a property name and value.

Once you have found the string (the first instance of the string), then it is an easy matter to click on it. You simply issue an IndexElementClick command and eValid will send an element click event to the DOM element at which you find a string match.

And, if there is no match, then the eValid script will ERROR out with a failure to find, and you're safe that way as well.

eValid Support
eValid
 
Posts: 2431
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons