Forum Discussion

nakshatra's avatar
nakshatra
Contributor
5 years ago
Solved

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.

  

 

 

 

 

 

  • 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.

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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.

  • 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