Selenium CSS Selector #2 – Write CSS Selector using Class Attribute

In this Selenium CSS selector tutorial we will learn how to write CSS selector using Class attribute.

If the webelement has the CLASS attribute you can use CLASS attribute details in CSS selector

CLASS attribute in CSS Selector is symbolised by the DOT (.) sign

Syntax : tagName.elementID

Example : input.signup