Page 1 of 1

Can eValid select multiple options on a webpage?

PostPosted: Thu Nov 13, 2014 10:46 am
by Sharlene
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

Re: Can eValid select multiple options on a webpage?

PostPosted: Fri Nov 14, 2014 3:35 pm
by eValid
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