Javatpoint Logo
Javatpoint Logo

Locating Strategies- (By CSS)

  • CSS stands for Cascading Style Sheets. It is a Style Sheet Language which is used to describe the look and formatting of a document written in markup language.
  • locating web elements through CSS involves use of CSS Selector which identifies an element based on the combination of HTML tag, id, class and attributes.

You can also refer to our CSS tutorial:

In WebDriver, CSS Selector works in six modes to identify and locate web elements.

Locating Strategies By CSS
  1. Tag and ID
  2. Tag and Class
  3. Tag and Attribute
  4. Tag, Class and Attribute
  5. Sub-String Matches

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA