Can eValid select multiple options on a webpage?

Applying eValid to AJAX applications that require advanced DOM-based methods.

Can eValid select multiple options on a webpage?

Postby Sharlene » Thu Nov 13, 2014 10:46 am

Morning:

Is there some way in eValid to select multiple options in a page (it's allowed, it says, click all that apply).

I just want to click them all, not matter what they say.

Thanks
Sharlene
 
Posts: 1
Joined: Thu Nov 13, 2014 10:45 am

Re: Can eValid select multiple options on a webpage?

Postby eValid » Fri Nov 14, 2014 3:35 pm

Sharlene wrote:Morning:

Is there some way in eValid to select multiple options in a page (it's allowed, it says, click all that apply).

I just want to click them all, not matter what they say.

Thanks


Thanks for asking Sharlene,

Two routes come to mind on answering your question.

(1) Use the FormTest wizard, described here:

http://www.e-valid.com/Products/Documen ... izard.html

This wizard will create a script that reads from the page and then visits all of the input areas on the page.

(2) Use a sequence of step organized like this:

...
IndexMove +1
IndexFindElement ...description of the element...
IndexElementClick ...click on the specific element on the page...
...

But this requires that you know the number of elements in advance. If you don't know that number, then...

(3) Put the above sequence in a loop from which escape will be when the first IndexFindElement FAILs and trows an ERROR flag.

You engineer the loop's escape by using an OnErrorGoScript command before starting the loop.

(4) To get eValid to loop, well, there is a trick. eValid's CallScript won't let you CallScript to yourself. But if you CallScript to a script that calls another script, that is not checked. So you can have a loop going with the proviso that unless you arrange for an escape it really will run forever -- or until your maximum playback time is exceeded.

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


Return to AJAX Applications & DOM Processing

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