Javatpoint Logo
Javatpoint Logo

Selenium IDE- 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.
  • Locating web elements through CSS Selector is much more complex compared to previous locating strategies.
  • Like XPath, CSS also have capabilities to locate an element having no ID, class or name.

For more knowledge regarding CSS Selector, visit: https://www.javatpoint.com/css-selector

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

  1. Locating by ID
  2. Locating by Class
  3. Locating by Attribute
  4. Locating by ID/Class & Attribute
  5. Locating by Sub-string
  6. Locating by inner text

Selenium IDE Locating Strategies By CSS
Next TopicLocating by DOM




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA