Resolve element can not be found when the page changes

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

Resolve element can not be found when the page changes

Postby DonaldK » Mon Dec 03, 2018 2:38 pm

Afternoon.

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

Thanks
DonaldK
 
Posts: 1
Joined: Mon Dec 03, 2018 2:23 pm

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

Postby eValid » Tue Dec 04, 2018 8:48 am

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
eValid
 
Posts: 1871
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