Does eValid ever get a stale element error

Discussion of the technology underlying the eValid solution.

Does eValid ever get a stale element error

Postby ROrison » Thu Mar 02, 2017 1:30 pm

Afternoon.

Can eValid ever run into a "stale element" error?

That's when you go back to a page and try to recover a DOM element value you found previously, but can't find it.

Do you have a solution or workaround to correct this kind of problems?


Thanks
ROrison
 
Posts: 1
Joined: Thu Mar 02, 2017 1:25 pm

Re: Does eValid ever get a stale element error

Postby eValid » Fri Mar 03, 2017 3:17 pm

ROrison wrote:Afternoon.

Can eValid ever run into a "stale element" error?

That's when you go back to a page and try to recover a DOM element value you found previously, but can't find it.

Do you have a solution or workaround to correct this kind of problems?


Thanks


Thanks for posting your question ROrison.

The definition of a "stale element" is not very precise.

There can be content in a web page DOM that is not as current as you would like, so in that sense it may be "stale".

But there is no date information kept in the DOM, like when an element was last updated.

Usually all of the DOM contents is updated whenever events that modify the content have finished.

Two observations:

(1) It is possible, but the safest thing to do is to "reload" the page so you have fresh (original) content.

Then this is a non-issue.

The command to do that in eValid is: (Reload wid) where wid is the eValid number of the window that is to be reloaded.

(2) You could make a copy a particular DOM element value and store it locally.

Then, to determine if it has changed you simply re-read that same element and compare with the prior value.

For you to this you would need the DOM Value Manipulation commands, described here:

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

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


Return to Technology

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