Forum Discussion

whuang's avatar
whuang
Regular Contributor
6 years ago

How to wait for a button to continue

Hello, I am new to TestComplete and scripting, please forgive me asking stupid questions.   I have a test that is going to click on a button on a web page, which will take me to the next page, an...
  • tristaanogre's avatar
    6 years ago

    Rather than 

    If Aliases.browser.WebStore_BillingInformation.ProceedWithOrder.WaitProperty("Enable", True, 20000) 

     

    I would do the following

     

    If Aliases.browser.WebStore_BillingInformation.WaitAliasChild("ProceedWithOrder", 20000).Exists

     

    first to make sure that the object DOES exist within the appropriate timing.

     

    Secondly, then I'd add the check for "Enabled"... note that the property name is Enabled not Enable.  There is a difference.