Selenium WebDriver is a tool used for automating web-based testing in different browsers.
- Selenium is open source
- Selenium supports various programming languages like Java, C#, ruby python, javascript.
- Selenium WebDriver is an active development tool
Locators:
Locators are used in finding the WebElements(anything present on the web page is known as WebElement - text field, radio button, etc) on the web pages.
Types of Locators:
- Selenium is open source
- Selenium supports various programming languages like Java, C#, ruby python, javascript.
- Selenium WebDriver is an active development tool
Locators:
Locators are used in finding the WebElements(anything present on the web page is known as WebElement - text field, radio button, etc) on the web pages.
Types of Locators:
- id
- name
- tag name
- class name
- link text
- partial link text
- CSS selector
- XPath
Inspect Element Code
To inspect an element, right-click on it in the web page and select Inspect from the right-click menu. A console will appear with HTML code under Elements tab
Elements tab html code for reference:
Elements tab html code for reference:
Locators Example - All locators covered(Highlighted in the above image for reference)
WebDriver Basic/Commonly Used Methods
WebDriver Navigation Methods