Page 1 of 1

What can you do when eValid can't found an element on a page

PostPosted: Mon Feb 12, 2018 11:55 am
by PAdams
Hello.

I was wondering:

What happens in eValid if you search for an element and it is not found?

Thanks

Re: What can you do when eValid can't found a element on a p

PostPosted: Tue Feb 13, 2018 11:20 am
by eValid
PAdams wrote:Hello.

I was wondering:

What happens in eValid if you search for an element and it is not found?

Thanks


Thanks for asking PAdams.

We assume you mean you are using the search commands described in this manual page:

http://e-valid.com/Products/Documentati ... ation.html

The search commands assume that you are starting at the SourceIndex, a variable know internally to eValid and which is defaulted to "0".

If match occurs, the value of SourceIndex is reset to the index of the element where the match was found.

If no match occurs, you get an error message in the EventLog and the value of SourceIndex is NOT CHANGED.

This means that if you have a property value that could be only one of to values (unique in the page) and your first search fails, you can run the second one right away, and you'll be assured that is there is a match it will be found correctly.


-- eValid Support