title: Does CSS Selector have contains text similar to xpath?
body: <p>In Selenium, are there any options for CSS selectors with &quot;contains&quot; similar to Xpath where we check with contains[text(),....].</p>
  <p>In the following example, I have given the CSS and Xpath</p>
  <pre><code>&lt;div class=&quot;abcjha&quot;&gt;
    &lt;span&gt;
      &lt;a class=&quot;test&quot; ng-tracking=&quot;test1&quot; data-tracking=&quot;abc&quot;&gt;Daniel&lt;/a&gt;
    &lt;/span&gt;
  &lt;/div&gt;
  
  CSS : a[data-tracking='abc']
  Xpath : //div/span/a[contains(text(),'Daniel')]
  </code></pre>
  <p>Similar to Xpath above, is there an option in CSS to check for the inner text ?
  When I browsed about it I saw this option</p>
  <pre><code>==&gt; css=button:contains(&quot;Log In&quot;)
  </code></pre>
  <p>but it is not working for me.</p>
  <p>Is there any option?</p>