Locator in simple term location of web element, which help
Selenium to perform the operation on them.
Selenium to perform the operation on them.
Web elements should be text box, button, checkbox, radio button, links, drop down etc.
Selenium interact with web element using the locators.
Below are the common types of locators available in Selenium:
- By ID
- By Name
- By Class Name
- By Link Text
- By Partial Link Text
- Absolute XPath
- AND Condition
- OR Condition
- Multiple Attributes
- Contains() Method
- Starts-with Method
- Text() Method
- Last() Method
- Position() Method
- Tag and ID
- Tag and Class
- Tag and Attribute
- Tag, Class & Attribute
- Starts-with (^)
- End-with ($)
- Contains (*)
No comments:
Post a Comment