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

Selenium CSS Selector #1 – Introduction to CSS and CSS Selector

In this Selenium CSS selector tutorial we will explain about CSS and CSS Selector.

CSS stands for Cascading Style Sheets. CSS is a style sheet language which describes the presentation of the HTML document.

CSS Selectors are used to target the HTML elements on web page