Forum Discussion

Tushar_Shankarm's avatar
13 years ago

Executing Negative Testcase : Clicking on disabled checkbox

Hi,



I am having a senario where i have to click on the checkbox which is disabled and then perform other steps mentioned in the testcase.



But doing so results in Error Log stating the "Object is disabled". and the execution stops there itself.



My requirement here is to run the script without any interruption.



I have tried unchecking the "Stop on error" option in Project Properties as well as Default Project Property . I didnt get any help.



can you all suggest me where am i going wrong? or if there is any other possible solution  other that Locking Log ???

 
  • sastowe's avatar
    sastowe
    Super Contributor
    The project test item also has a stop on error setting that may be operative here. If it were me, I would do a checkpoint on the enabled property of the object in question. That way you get a positive checkpoint in your log asserting that the property enabled was the desired value.