What is the syntax of finding elements by class using CSS Selector?
Hey Helen
To answer your query, by using .className
in the CSS locator, we can select all the elements belonging to a particular class, e.g., ‘.red’
will select all elements having class ‘red’
.
We hope this answers your query.