Page 1 of 1

Need help with filling out two blank fields on a webpage

PostPosted: Mon Oct 10, 2022 10:15 am
by JanetM
Hi.

I need some help with the following:

I'm facing a rare kind of issue while automating my testing: filling out two fields on a website.

My script fills out the first field i.e., ORIGIN CITY pretty fine.

How do I induce eValid to wait for the second blank field DELIVERY ADDRESS.

TY

Re: Need help with filling out two blank fields on a webpage

PostPosted: Tue Oct 11, 2022 10:42 am
by eValid
JanetM wrote:Hi.

I need some help with the following:

I'm facing a rare kind of issue while automating my testing: filling out two fields on a website.

My script fills out the first field i.e., ORIGIN CITY pretty fine.

How do I induce eValid to wait for the second blank field DELIVERY ADDRESS.

TY


Thanks for posting your issue, JanetM.

OK you have the test script finding the ORIGIN CITY and filling it in but now you want to wait until the JavaScript or the web server fills in something called DELIVERY ADDRESS.

This means a DOM change.

The approach to use is to wait for the DOM update, which you can do by using a synchronization command pivoted on the DOM element that ultimately will show DELIVERY ADDRESS.

You have to know this index value in advance, but that's not a problem because you can find it by running an IndexFindElement command searching for the DELIVER ADDRESS string.

Remember, if IndexFindElement finds the element if you run the same command again, it will find that string and not change the internal value of sourceIndex.

So, you might put a sequence of these IndexFindElement commands in a line with a fixed wait (e.g., 100 ms) using a structure like this:

Wait 100
IndexFindElement ...
Wait 100
IndexFindElement ...
Wait 100
IndexFindElement ...
Wait 100
IndexFindElement ...
Wait 100
IndexFindElement ...
...

Depending on local processing time, you might want to use some larger delay that 0.1 sec (= 100 msec).

Here's the manual page:

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


-- eValid Support.