cancel
Showing results for 
Search instead for 
Did you mean: 

The button 'Accept' is disabled. The action cannot be executed.

SOLVED
Occasional Contributor

The button 'Accept' is disabled. The action cannot be executed.

Hi,

 

I am getting this error when i record somehting on test complete. "The button 'Accept' is disabled. The action cannot be executed." I checked the properties of the my button and it says that is is enabled and visible. 

 

Any suggestion.

 

thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: The button 'Accept' is disabled. The action cannot be executed.

 

I'm guessing that this is really happening when you are playing back the recording, right?

 

Try putting a breakpoint on a line a little bit before the one that won't click the Accept button, then step through the test to see if you can get past this spot.  If that works, then it's likely a timing issue.  The test is running faster than the page can load so it gets there before the button is enabled.  Use one of the Wait* functions to wait for the button to be enabled and then try to click it.

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-property-value.html

1 REPLY 1
Community Hero

Re: The button 'Accept' is disabled. The action cannot be executed.

 

I'm guessing that this is really happening when you are playing back the recording, right?

 

Try putting a breakpoint on a line a little bit before the one that won't click the Accept button, then step through the test to see if you can get past this spot.  If that works, then it's likely a timing issue.  The test is running faster than the page can load so it gets there before the button is enabled.  Use one of the Wait* functions to wait for the button to be enabled and then try to click it.

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-property-value.html

New Here?
Join us and watch the welcome video: