title: webdriverio - not able to find element with class name
body: <p>I am trying find an element with</p>
  
  <pre><code>let selector = "[class='count-stats']";
  console.log(browser.element(selector));
  </code></pre>
  
  <p>Getting an error with</p>
  
  <pre><code>{ type: 'NoSuchElement',
    message: 'An element could not be located on the page using the given search p
  arameters.',
    state: 'failure',
    sessionId: 'd16e8f18e203d7d862d36bcb29f86cfa',
    value: null,
    selector: '[class=count-stats]' }
  </code></pre>
  
  <p>There is a <code>div</code> with class name <code>count-stats</code> on a page. </p>
  
  <p><strong>How do I find an element with class name ?</strong></p>