title: How to select a web element by text with Selenium WebDriver, Java
body: <p>I need to find the following element on the web page  </p>
  
  <pre><code>&lt;div class="b-datalist__item__addr"&gt;noreply@somedomain.com&lt;/div&gt;
  </code></pre>
  
  <p>I'm coding with Java for Selenium WebDriver.<br>
  Need the exact CSS selector for this element to use it with <code>driver.findElement(By.cssSelector(the-selector).click</code> command.<br>
  <code>div[class='b-datalist__item__addr']</code>  selector is not good enough since I must search according to <code>noreply@somedomain.com</code> text that is not a link so I can't use <code>findElement(By.linkText())</code> command.  </p>