What is the syntax of finding elements by id using CSS Selector?
Hey Helen
You can use the #idValue
in the CSS locator. This way we can select all the elements belonging to a particular class, e.g., ‘#userId’
will select the element having an id – userId
.
We hope this answers your query.