Introduction to automated testing. Why is it needed ?
What is a framework ? TestNG framework, testng.xml file.
Selenium WebDriver. Open, maximize and close browser.
Locators: Css selectors, xpath, etc ..
WebElement. Finding WebElements using locators.
Interacting with WebElements.
Annotations. TestNG @Before and @After annotations.
Refactoring tests using @Before and @After methods
Most common reason for failures. Thread sleep.
WebDriver Waits: Implicit, Explicit, Fluent waits.
Selenium actions. Most useful methods.
What is a design pattern ? Page Object Model (POM)
Locators as instance variables and POM methods.
Idea of BaseObject class, it’s purpose.
PageFactory. @FindBy annotation.
Creating WebDriver in a separate class.
Defining wait methods in a separate class.
Idea of a BaseTest class.
Parameterized testing, @DataProvider annotation
“groups” and “dependsOn” attributes and their affection on test execution order.
Testng.xml file. Parallel running, including and excluding tests.
Some useful tips and tricks.