title: Python Selenium Array
body: <p>I am trying to check all check boxes in an array with selenium-webdriver. But I am struggling in finding the correct methods/functions, somehow this whole code is very confusing. </p>
  
  <p>What i have are either one or multiple databoxes like this:</p>
  
  <pre><code>&lt;div class="data_row"&gt;
  &lt;span id="checkbox_detail_ONE" class="checkbox_detail"&gt;
  &lt;input type="checkbox" value="dir://TEST" name="file_list" onclick="check_enable_btn()"&gt;
  </code></pre>
  
  <p>from where I want to check all checkboxes except the one named <strong>checkbox_detail_ONE</strong> </p>
  
  <p>In python I tried this, but I guess its a misinterpretation of the <code>driver.find_elements_by_xpath()</code>:</p>
  
  <pre><code>for i in driver.find_elements_by_xpath("//span[@class='checkbox_detail']"):
      if "ONE" in i.text:
          print "Keep "
      else: 
          print "Delete"
          i.click()
  </code></pre>