In Selenium Webdriver, locators like XPath, CSS, etc. are used to identify and perform operations on a web page.
- For an HTML element, the method returns a WebElement.
- For a decimal, the method returns Long.
- For a non-decimal number, the method returns Long.
- For a Boolean, the method returns Boolean.
- For other cases, the method returns a String.