Skip to main content
Tweeted twitter.com/#!/StackSQA/status/437581760885690368

How to select or check multiple checkbox python seleniumcheckboxes in Selenium?

I've got this htmlHTML 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> "

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

WhitWith this

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

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

select or check multiple checkbox python selenium

I've 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> "

Whit 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?

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?

Source Link
user2637
  • 61
  • 1
  • 1
  • 2

select or check multiple checkbox python selenium

I've 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> "

Whit 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?