Page 1 of 1

Resolve element can not be found when the page changes

PostPosted: Mon Dec 03, 2018 2:38 pm
by DonaldK
Afternoon.

What happens when the page changes and an element can not be found?

Thanks

Re: Resolve element can not be found when the page changes

PostPosted: Tue Dec 04, 2018 8:48 am
by eValid
DonaldK wrote:Afternoon.

What happens when the page changes and an element can not be found?

Thanks


Thanks for posting DonaldK.

We assume you are talking about the IndexFind... commands, like one of these:

http://e-valid.com/Products/Documentati ... indElement

If an element find operation fails to find an element, then a Warning message is written, but the script then continues as if the element searched for has not been found.

This leaves the value of "SourceIndex" unchanged.

Either you can set a flag for alternative processing for that failure, or you can check the value of "SourceIndex" to see if it has changed.

Hint: If the element you are searching for is on the SAME index value as where you started, then you will indeed find it and there won't be a change in value.

In this case you can use a ValueSet +1 command to jump around this situation.


-- eValid Support