Ask a Question

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

SOLVED
eranda
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 REPLY 1
Marsha_R
Champion Level 2

 

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

cancel
Showing results for 
Search instead for 
Did you mean: