Selenium WebDriver Tutorial

Selenium WebDriver Tutorial Java

selenium tutorial onlyfullstack

Part 1 – What is Selenium WebDriver? How to setup Selenium?

  – What is Selenium?
– Selenium is divided into 3 different frameworks –
– 1. Selenium WebDriver
      – 2. Selenium IDE
– 3. Selenium Grid
– What is Selenium WebDriver?
– How Selenium WebDriver works?
– How to setup Selenium?
– 1. Create new maven project
– 2. Add Selenium dependancy
– 3. Download the WebDriver
– 4. Write simple test case
– 5. Specify the WebDriver path
https://www.onlyfullstack.com/what-is-selenium-webdriver-how-to-setup-selenium/

Part 2 – Locators in Selenium WebDriver – Id, Name, Class Name, Tag Name, CSS, XPath

– Locators in Selenium WebDriver
– What is HTML element?
– Locators in Selenium WebDriver
– Finding the html element information using Chrome / Firefox

          – How to find the elements in Selenium?
      – 1. Id as Locator in Selenium WebDriver
– How to use Developer Tool to view HTML element
      – 2. Class Name as Locator in Selenium WebDriver
– 3. Name as Locator in Selenium WebDriver
      – 4. XPath as Locator in Selenium WebDriver
– What is XPath?
          – Types of XPath
          – What is the difference between Absolute and Relative XPath?
– 1) Absolute XPath
          – 2) Relative XPath
      – 5. Tag Name as Locator in Selenium WebDriver
      – 6. CSS Selectors in Selenium WebDriver
– 6.1. CSS Selector by ID
– 6.2. CSS Selector by Class
– 6.3. CSS Selector by Attribute
– 6.4. CSS Selector by Sub String
– Match a prefix
– Match a suffix
– Match a substring
– 6.5. CSS Selector by Inner text
      – 7. Link Selector Locator in Selenium WebDriver
– 7.1. Link text selector
– 7.2. Partial Link text selector
https://www.onlyfullstack.com/locators-in-selenium-webdriver/

Part 3 – Selenium WebDriver Commands

– Types of Selenium WebDriver Commands
– Selenium WebDriver Commands are divided into 3 types as below
– 1. Browser Commands
– 1. Get Command
– 2. Get Title Command
– 3. Get Current URL Command
– 4. Get Page Source Command
– 5. Close Command
– 6. Quit Command
 – 2. Navigation Commands
– 1. Navigate To Command
– 2. Forward Command
– 3. Back Command
– 4. Refresh Command

 – 3. WebElement Commands
– What is Web Element?
– 1. Send Keys Command
– 2. Clear Command
– 3. GetText Command
– 4. Submit Command
     – 5. GetTagName Command
– 6. Click Command
– 7. IsDisplayed, IsEnabled and IsSelected Command
https://www.onlyfullstack.com/selenium-webdriver-commands/

Part 4 – How to Handle CheckBox and Radio Button in Selenium WebDriver

  – How to select Radio Button in Selenium WebDriver?
– How to select CheckBox in Selenium WebDriver?
– How to check if the Radio Button is selected in Selenium WebDriver?
– How to check if the CheckBox is selected in Selenium WebDriver?

Part 5 – How to Handle DropDown in Selenium WebDriver

– What is Select in Selenium WebDriver?
– How to select an option from drop-down menu?
– 1. Select By Visible Text
– 2. Select By Value
– 3. Select By Index
– How to get the values from DropDown menu?

https://www.onlyfullstack.com/how-to-handle-dropdown-in-selenium-webdriver/

Part 6 – How to handle alerts, confirm, prompts and popups in Selenium WebDriver

– What is Alert?
– Types of Alert

      – 1. Simple Alert
– 2. Confirmation Alert
      – 3. Prompt Alert
– How to handle Alert / Confirm / Prompt in Selenium WebDriver?
– 1. void accept()
– 2. void dismiss()
– 3. String getText()
– 4. void sendKeys(String stringToSend)