Page 1 of 1

Can eValid wait for this kind of JavaScript call

PostPosted: Thu Mar 26, 2020 10:04 am
by AnnaKM
Greetings.

How do I wait for a JavaScript do a "PostBack" call?

Any help would be appreciated.


Thanks

Re: Can eValid wait for this kind of JavaScript call

PostPosted: Fri Mar 27, 2020 9:15 am
by eValid
AnnaKM wrote:Greetings.

How do I wait for a JavaScript do a "PostBack" call?

Any help would be appreciated.


Thanks


Thanks for posting AnnaKM.

That is a very detailed question, but we assume you know where that call originated in the DOM of the page in question, and we assume you know something about that DOM element.

Then you...

Get the sourceIndex of the DOM element, using the eValid DOM search commands:

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

or

http://e-valid.com/Products/Documentati ... nt.ex.html

Second, you find the specific property name in that element that you know (from you knowledge of the page) will take on a value that signals the completion of the doPostBack action.

Third, you set up a "DOM-based" WAIT loop using the available synchronization commands, summarized here:

http://e-valid.com/Products/Documentati ... n.dom.html


-- eValid Support