Skip to main content
2 of 2
Title correction , spelling and formatting

How to select or check multiple checkboxes in Selenium?

I've got this HTML code

<input type="checkbox" value="abc" name="arr[]><br>
<input type="checkbox" value="abc1" name="arr[]><br>
<input type="checkbox" value="abc2" name="arr[]><br>

With this

self.browser.find_element_by_xpath("//input[@name='arr[]']").click()

I can check only the first checkbox, but I want check all check box in the same time. How I can do it?

user2637
  • 61
  • 1
  • 1
  • 2