Skip to content
Advertisement

Selenium Python Checkbox Click

I am trying to access the following HTML checkbox for a button click:

JavaScript

using:

JavaScript

but keep getting error:

JavaScript

what might be the element path I am looking for in order to select the checkbox?

Advertisement

Answer

Your xpath is most likely incorrect – you need to enter // before the element as this will find all (single slash / will work here too though as you are only trying to find one element and it will find the first match)

Try one of the following:

JavaScript

OR

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement