Xpath to determine checkbox “checked” attribute in Selenium IDE

前端 未结 5 778
无人及你
无人及你 2021-01-12 21:45

How to determine if a checkbox is check or not through xpath

Currently I am trying :

//input[@type=\'checkbox\' and @checked=\'true\')]
5条回答
  •  灰色年华
    2021-01-12 22:19

    You can try these one:

    //*[@type='radio'][@checked='checked']/
    //*[@type='radio'][not(@checked='checked')]/
    

提交回复
热议问题