Syncronization: How to syncronize for page load or search record displayed in table?
I am looking for dynamic syncronization meaning it should wait till the page load and then start the activities. Currently, I am using Delay(2000) method to do this but it is not effective as sometime the page is loaded quickly and sometimes not.
Also,I have another scenario where we are searching the record and it takes time, we are not sure how much time it will take to complete the operation.
I would like to know what can I use in order to make the wait dynamic.
.WaitXXX() or .FindChildEx() methods are best for this.
/Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Additionally, if you're testing web pages, you can wait for page to load by calling the "Wait" method of the page object.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider