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://www.javatpoint.com/css-selector In WebDriver, CSS Selector works in six modes to identify and locate web elements.
- Tag and ID
- Tag and Class
- Tag and Attribute
- Tag, Class and Attribute
- Sub-String Matches
|