title: Unable to find ::before css selector element in selenium webdriver
body: <p>I want to test for checkbox checked or unchecked condition.</p>
  
  <p>This is the html code for checkbox checked</p>
  
  <pre><code>&lt;div classs="input-control checkbox"&gt;
  &lt;span class="check"&gt;
  ::before
  &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><code>::before</code> is css selector.</p>
  
  <p>when i hoverover to checkbox, it shows webelement as <code>span.check::before</code></p>
  
  <p>but  </p>
  
  <pre><code>driver.FindElement(By.CssSelector("span.check::before"));
  </code></pre>
  
  <p>throws element not found exception.</p>
  
  <p>Any help will be highly appreciated.</p>