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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.