title: Selenium click all checkboxes in class?
body: <p>I am using selenium to open a tableau visualization on a webpage. It has multiple checkboxes that represent filters for the viz. How do I click all of them? This is the relevant HTML:</p>
  <p><a href="https://i.stack.imgur.com/srZ32.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/srZ32.png" alt="HTML HERE" /></a></p>
  <p>This is what I have tried so far with xpath</p>
  <pre><code>xpaths = { 'usernameTxtBox' : &quot;//input[@name='username']&quot;,
             'passwordTxtBox' : &quot;//input[@name='password']&quot;,
             'submitButton' :   &quot;//button[@class='fycmrtt login-page_submit-button_f1pvbd5k low-density'][.='Sign In']&quot;,
             'Check' :        &quot;//label[contains(@class,'tab-zone tab-widget tabSuppressVizTooltipsAndOverlays tabZone-filter fade-bg')]//child::input[@type='checkbox']&quot;
  
           }
  
  mydriver.find_element_by_xpath(xpaths['Check']).click()
  </code></pre>
  <p>EDIT:</p>
  <p>I've found that this line here plays some sort of role. Does this actually mean anything? The below is from a checked checkbox.</p>
  <blockquote>
  <p>checked=&quot;checked&quot;
  <a href="https://i.stack.imgur.com/VubdI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VubdI.png" alt="See Edit 1" /></a></p>
  </blockquote>