title: Selenium: Check if a WebElement has the focus
body: <p>I was expecting something like WebElement.isfocus(),... something really simple, but the only approach I found is using the </p>
  
  <pre><code>:focus 
  </code></pre>
  
  <p>pseudo class. </p>
  
  <p>Is this really such an uncommon task as for not find tons of information?</p>
  
  <p>I'm aware of <a href="https://stackoverflow.com/questions/5400708/selenium-ide-how-to-check-if-an-element-has-a-focus">this SO topic</a>, but it's been almost two years from then. Nothing new in more recent versions?</p>
  
  <p>Would you know some workaround?</p>