Help me with Selenium locators in WebDriverIO.
Hi Rahul,
Selenium locators are utilized to find elements on a web page through a Selenium WebDriver when a test automation script is executed. A selector is a keyword in the selectors list of the WebDriver, which is read by Selenium library, convert into an HTTP request and interact with web browsers.
These are some of the Selenium locators in WebDriver IO:
- CSS Query Selector
- Link Text
- Partial Link Text
- Element With Certain Text
- Tag Name
- Name
- XPath
- ID
- Chain Selectors
- JS Function
- React Selector
- Custom Selector
Hope it helps!
4 Likes