cancel
Showing results for 
Search instead for 
Did you mean: 

How to use wait property?

SOLVED
Highlighted
Contributor

How to use wait property?

Hi All,

I am using wait property in keyword test. 

Property name: VisibleOnScreen

Property value: True

wait: 60000(Created one variable and stored 60000 in it) for every test case i am using that variable for waiting.

Here the problem is object is not waiting upto 60 sec. It is wating upto auto wait time(10 sec)

 

Can anyone help am I missing any changes? How to slove this.

 

Thanks in advance.

  

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: How to use wait property?

Can you share your code?

Understand, though, that there is an initial wait as well for object identification.  

 

If, for example, you're calling "WaitProperty" on Aliases.MyApp.MyForm.MyButton, the engine of TestComplete first needs to detect the object itself and will wait for MyButton to be available.  You can't call "WaitProperty" on an object that does not exist so it first needs to search out the object.  This is default and expected behavior.


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

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: How to use wait property?

Can you share your code?

Understand, though, that there is an initial wait as well for object identification.  

 

If, for example, you're calling "WaitProperty" on Aliases.MyApp.MyForm.MyButton, the engine of TestComplete first needs to detect the object itself and will wait for MyButton to be available.  You can't call "WaitProperty" on an object that does not exist so it first needs to search out the object.  This is default and expected behavior.


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

View solution in original post

Highlighted
Community Manager

Re: How to use wait property?

In addition to Robert's reply, please take a look at the following page explaining the ways you can use to wait for objects in TestComplete:

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-process-or-window-a...

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Member

Re: How to use wait property?

Wait: waits for certain time which we mentioned in the value.
syntax: wait(millisec)
 
ex: wait(100) script wait for 100 milliseconds.
 
wait property(propertyname,status)
browser("kjkjdk").sync

https://www.ifourtechnolab.com/
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors