cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to wait for a button by default?

SOLVED
Highlighted
RL
New 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
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 Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

4 REPLIES 4
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 Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

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.↓↓↓↓↓
RL
New 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

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:
Top Kudoed Authors