In Selenium, are there any options for CSS selectors with "contains" similar to Xpath where we check with contains[text(),....].
In the following example, I have given the CSS and Xpath
<div class="abcjha">
<span>
<a class="test" ng-tracking="test1" data-tracking="abc">Daniel</a>
</span>
</div>
CSS : a[data-tracking='abc']
Xpath : //div/span/a[contains(text(),'Daniel')]
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
==> css=button:contains("Log In")
but it is not working for me.
Is there any option?