Ask a Question

Syncronization: How to syncronize for page load or search record displayed in table?

nimishbhuta
Frequent Contributor

Syncronization: How to syncronize for page load or search record displayed in table?

 

Hello All, 

 

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.

 

Regards,

 

Nimish 

2 REPLIES 2
AlexKaras
Community Hero

Re: Syncronization: How to syncronize for page load or search record displayed in table?

Hi Nimish,

 

.WaitXXX() or .FindChildEx() methods are best for this.

Regards,
  /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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
tristaanogre
Community Hero

Re: Syncronization: How to syncronize for page load or search record displayed in table?

Additionally, if you're testing web pages, you can wait for page to load by calling the "Wait" method of the page object.

 

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/page/wait-action-page...

 

 


Robert Martin
[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
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: