title: How to check if a checkbox is selected in Selenium WebDriver with Ruby
body: <p>Please find the code below </p>
  
  <pre><code>element = WAIT.until{driver.find_element(:xpath,".//*[@id='graphs']/div/div[2]/div[2]/div[1]/div/div[1]/div[2]/label")}
  
  element.selected?
  element.click
  element.selected? == false
  </code></pre>
  
  <p>I tried in Irb <code>element.selected</code>?
  It returns false even if checkbox is checked.</p>
  
  <p>How to check this type of problem?</p>