Identifying Web Elements using CSS Selector in Selenium Scripts
How to use CSS Selector as Locator:
What is CSS Selector ?
CSS Selector is combination of an element selector and a selector value which identifies the web element within a web page. The composite of element selector and selector value is known as Selector Pattern.
CSS Primitive Types
Here are the Tricks to do it,
Read the full Tutorial here - CSS Selectors in Selenium Scripts