Home ยป Selenium WebDriver Locating Strategies By CSS

Selenium WebDriver Locating Strategies By CSS

by Online Tutorials Library

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: https://tutorialsinfo.com/css-selector

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

You may also like