cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to wait for a button by default?

SOLVED
Highlighted
Occasional Contributor

Is it possible to wait for a button by default?

Hello,

i recently changed to Testcomplete14 (from TC12) which seems to be a bit faster than before. I now get several errors during different testruns complaining about "The button 'Name' is [invisible/deactived/etc.]. The action cannot be executed."

The Problem is the control is activated shortly afterwards and it would take hours if not days to set a WaitProperty before every possible control where this can happen.

So my question is: Is it possible to let TC wait for a control to get activated by default for a few seconds before throwing an error? I cannot imagine a scenario where it is necessary not to wait for a control to get activated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Is it possible to wait for a button by default?

Hi,

 

I assume that you are working with the desktop application.

If my guess is correct, then no, I am not aware of such option.

I think that the reason for this is that it may be expected that control is disabled and thus there is no reason to wait for it to become enabled.

 

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
================================

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: Is it possible to wait for a button by default?

Hi,

 

I assume that you are working with the desktop application.

If my guess is correct, then no, I am not aware of such option.

I think that the reason for this is that it may be expected that control is disabled and thus there is no reason to wait for it to become enabled.

 

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
================================

View solution in original post

Highlighted
Community Manager

Re: Is it possible to wait for a button by default?

Hi @RL,

 

Take a look at the Auto-wait timeout project option: https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.h...

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

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

Re: Is it possible to wait for a button by default?

Unfortunately the execution of the tests is aborted with an error when a control is disabled so the Auto-wait timeout property does not help

Highlighted
Community Manager

Re: Is it possible to wait for a button by default?

Hi @RL,

 

In this case, you need to check the button's state. You can use the approach listed in this article:

https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/standard/button/checking-...

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Read the Latest News
JuneSCNJ
Top Kudoed Authors