I have recently moved from using xpaths to CSS selectors given the need of the project. I am new to the use of these locators and need to know if there is any way through which I can write text based CSS selectors for my Web Elements.
I found some sources like [ https://sauceio.wordpress.com/2010/03/19/selenium-tips-finding-elements-by-their-inner-text-using-contains-a-css-pseudo-class/ ] and [ https://saucelabs.com/resources/articles/selenium-tips-css-selectors ] which suggest that CSS selectors allow text based locators using contains pseudo-class but I am not able to write them using this approach. Is there any way through which I can write text based CSS locators for the web elements?