0

How to check if checkbox is checked or not checked using selenium without jQuery/JScript if 'checked' attribute is not available to use the isChecked / isSelected?

enter image description here

Guy
  • 46,488
  • 10
  • 44
  • 88

2 Answers2

0

In this case, you should try to toggle the checkbox while you are in developer mode in order to see which element or attribute is changed during the toggle process. When you find out which thing is changed ,you can used that to check by selenium.

An Nguyen
  • 288
  • 1
  • 15
0

Checkboxes don't always have the checked attribute, you can still use isSelected() on it.

Guy
  • 46,488
  • 10
  • 44
  • 88