Need help with filling out two blank fields on a webpage

How to apply eValid to functional testing of web applications.

Need help with filling out two blank fields on a webpage

Postby JanetM » Mon Oct 10, 2022 10:15 am

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
JanetM
 
Posts: 1
Joined: Mon Oct 10, 2022 10:12 am

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

Postby eValid » Tue Oct 11, 2022 10:42 am

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.
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

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