I was trying to select check box based on condition as below:
Test Site: http://demo.guru99.com/test/radio.html
To automate this web page, my requirement is
- Display Input Dialog box where user will enter check box label i.e. ‘Checkbox1’, ‘Checkbox2’, or ‘Checkbox3’
- based on provided user input, i wanted to select that particular check box; if it’s not already selected. If it’s already selected then don’t perform click operation on that check box.
I tried it using anchor base; however unable to get proper selector so that i get any property of checkbox label and provide the label name as variable into selector.
Could you please help me into it?