Forum Discussion

Jainsoumya's avatar
Jainsoumya
Contributor
2 years ago

getting error The action may be performed incorrectly, because the control is disabled

rraghvani 

 

getting error in web application for if object operation .I have if object operation exist then click should take place but then also click action is happening and getting error :

The action may be performed incorrectly, because the control is disabled. 

below is code 

 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Objects have Properties and Methods - in your case, the object exists and the property value is disabled. Therefore, it's going to perform the click method.

     

    You need to check the property value before performing a click.