1

I could have found xpath and jquery selector using 'contains' but can't find text using 'contains' or 'text' in css selector. What is the keyword similar to 'contains' in css selector?

Dhvani Agola
  • 21
  • 1
  • 1
  • 2

1 Answers1

1

its not possible in css selector..you have to use xpath for contains text

  • 1
    This is not true. You can use CSS selector with contains, but use plugin extension to evaluate it. For example a:contains('Terms') works fine on https://wordpress.com/log-in using CSS Selector Tester plugin in chrome. – Michal Mar 04 '18 at 10:10