Skip to content

Selenium WebDriver with Java -Basics to Advanced + Frameworks

Notifications You must be signed in to change notification settings

shomnathsomu/Learn-Selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium WebDriver with Java [Basics to Advanced] + Frameworks

TestCase1

  1. Run selenium with the Chrome web driver
  2. Set Chrome webdriver with driver directory [webdriver.chrome.driver <= D:\chromedriver_win32\chromedriver.exe]
  3. Validate if your Page title is correct
  4. Validate if you are landed on the correct URL
  5. Print the page source code
  6. Page navigate [Forward and Backward]
  7. Current browser and all browser close operation

TestCase2

  1. Run selenium with the Firefox web driver
  2. Set Firefox webdriver with driver directory [webdriver.chrome.driver <= D:\Webdrivers\geckodriver-v0.32.0-win64\geckodriver.exe]
  3. Create driver object for the Firefox browser
  4. Get the Title of the website

TestCase3

  1. Locator identifiers [ID/ ClassName/ Name/ linkText/ Xpath/ Css]
  2. Create an object of a class
  3. Pass the parameters to the methods
  4. Check how multiple values work- Selenium identifies the first one and scans from the top left

TestCase4

  1. Create the Xpath for the Login button
  2. Create the CSS selector for the text link
  3. Classes should not have spaces - Compound classes cannot be accepted
  4. Validate the error message from the Form fields

TestCase5

  1. Locator identifiers: Xpath/ Css
  2. Xpath format: //tagName=[@attribute='value']
  3. Create customized Xpath from HTML attributes
  4. cssSelector format: tagName=[attribute='value']
  5. cssSelector format(if tagName has an id): tagName#idValue or #idValue
  6. cssSelector format(if tagName has a class): tagName.classValue
  7. Create customized CSS from HTML attributes

TestCase6

  1. Xpath format for Regular Expression: //tagName[contains(@attribute, 'value')]
  2. cssSelector format for Regular Expression: tagName[attribute*='value']/tagName#id/tagName.classname
  3. Customized xpath and css practices
  4. Created customized Xpath and cssSelector with regular expressions

TestCase7

  1. Identify Xpath with parent child traverse relationship
  2. Xpath practices [ Relative Xpath doesn't depend on parent nodes and Absolute Xpath is the parent/child nodes traverse]

TestCase8

  1. Traverse to the sibling element using Xpath
  2. Traverse to the parent element using Xpath
  3. Identifying objects with Text() function using Xpath locators

TestCase9

  1. CSS selectors locators [Using attribute and value, ID, class]

TestCase10

  1. Handling static dropdown with select webdriver API
  2. Select static dropdown by visibleText/Index/Value

TestCase11

  1. Handle the latest drop-down looping UI
  2. Handling Java alerts
  3. Parent-Child relationship locator to Identify the objects Uniquely

TestCase12

  1. Select the From drop-down using absolute Xpath
  2. Handle the latest drop-down looping UI

TestCase13

  1. Importance of Assertions in Automation testing and how to use them

myTestSuite.Assignment

  1. Simple Amazon End-to-end search

myTestSuite.Day1.Day2.Day3

testng.xml && testng2.xml && testng3.xml

  1. Running testcases in TestNG without Java compiler
  2. Prioritizing the Testcases with TestNG
  3. xml file in Testng configuration
  4. Include and Exclude Mechanism to control testcases
  5. Executing the Testcases at Package level with regex
  6. TestNg Annotations
  7. Groups functionality in TestNG
  8. Annotations helper attributes with examples
  9. Parameterising from TestNG xml file
  10. DataProvider Annotation -Parameterizing Testcases
  11. Listeners Interface in TestNG framework
  12. Running Tests in parallel and generating Reports

myTestSuite.GlobalValuesDrive

  1. Write Global parameters with java code

About

Selenium WebDriver with Java -Basics to Advanced + Frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published