Chapter - 1 Till HTML
Chapter - 1 Till HTML
Introduction:
1.what is Automation?
2.Why Automation?
3. Advantages and dis advantages of Automation?
4. Types of Automation?
Introduction to Selenium:
1.What is Selenium?
2. Why Selenium?
3. Advantages and disadvantages of Selenium?
4. Selenium Components?
Selenium Softwares:
Selenium servers, creating maven project
Selenium WebDriver Architecture
WebDriver Architecture
Methods of WebDriver
HTML
Locators
Types of Locators
Synchronization
Implicit Wait
Explicit Wait
Thread.sleep
fluentWait(Adv selenium)
custom wait(Adv selenium)
WebElements
Action, getter, verification methods
Chapter-2
Auto Suggestions
Frames
Select class
Dropdown
Action Class
Right Click
Double Click
Drag and Drop
Mouse hover
Pop_Ups
Authentication Pop up
File upload pop up
File down load pop up
Child browser pop up
Notification pop up
Hidden division pop up
Scroll bar
Screenshots
Chapter:3
Data Driven testing
Pom(Page object model)
TestNg
Chapter:4
Maven project(theory)
Framework(Hybrid)
Git_hub(basics)
Jenkins(basics)
Java Concepts:
Variables
Methods
Constructors
Loops for, for each ,while loop
If -else
OOPS
Type casting
Access modifiers
Exception handling
Collection
List, set
Hash map
Array
what is Automation
It is a process of converting any manual test cases into
test scripts using automation a tool like selenium and
programming language like java.
What is Automation Testing?
Automation Engineer writes code/program/Script by
using automation a tool like selenium and
programming language like java and runs the script
against the application, where in this script will tests
the application and gives us the result pass or fail.
Which is nothing but a automation testing.
Introduction to Selenium:
Selenium: It is a free opensource tool which is used to
automate web applications.
Web Application: Any applications that is accessed by
opening the browser and entering the URL, those
applications we will called as Web Applications.
Advantages of selenium:
• As it is free tool overall project cost can reduced
using selenium.
• Opensource means easy to download and easy to
integrate the selenium with 3rd party tool.so
customization cost can be reduced.
• Selenium supports multiple programming
languages.
• Selenium supports multiple Operating systems
• Selenium supports multiple browsers with
respective driver executables.
Disadvantages of selenium:
Maven project:
Open Eclipse----File-----New----Project-----Expand
maven project-----select maven project---Next-----
Select the check box create a simple maven project---
Next---Groupid: organization name(eg:Q_spider)
Artifact Id: Project name(eg: Basic_Selenium)--
-----Finish
How Maven project structure looks like?
Explanation of
WebDriverManager.chromedriver().setup();
WebDriverManager.firefoxdriver().setup();
• WebDriver Manager is a library which
automatically downloads the required driver
executables and will sets up the system
property.
WebDriver Architecture/WebDriver
Hierarchy/selenium WebDriver Architecture with
respect to java/Class diagram of
WebDriver/Hierarchy of Selenium classes and
interfaces:
Explanation:
• Search Context is the super most interface in selenium
which contains two abstract methods which are below.
Methods returntype
findElement(); WebElement
findElements(); List<WebElement>
package Basic_Topics;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import
io.github.bonigarcia.wdm.WebDriverManager;
WebDriverManager.chromedriver().setup();
WebDriver driver=new ChromeDriver();
driver.manage().window().maximize();
driver.get("https://www.facebook.com/");
Thread.sleep(5000);
String title=driver.getTitle();
String url = driver.getCurrentUrl();
System.out.println(title);
System.out.println(url);
driver.close();
}
findElement(): This is used to fetch the address of 1 st
matching element.
If it does not fetch the address it will give No such
Element Exception.
findElements(): This is used to fetch the addresses of
all matching element.
If it does not fetch the address it will give Empty List
Exception.
get():This is used to enter the url and this will wait until
the page get loaded.
sendKeys(): This is used to send the data
click(): this is used to perform click action
getTitle():This is used to get the title of the page
getCurrentUrl():used to get the current url
close():It is used to close the application.
Eg:
driver.getTitle().contains("Facebook – log in or sign up")
Explanation of
driver.manage().window().maximize();
This statement is used to maximize the window.
Manage()-------> WebDriver method
Window()-------->method in nested window interface
Maximize()------>method in nested window interface
Minimize()------>method in nested window interface
fullScreen()------>method in nested window interface
Explanation of
driver.manage().window().maximize();
This statement is used to maximize the window.
Manage()-------> WebDriver method
Window()-------->method in nested window interface
Maximize()------>method in nested window interface
HTML:
HTML is a Hyper Text Markup Language, used by the
web designers for developing Web pages.
HTML has 3 elements which are below
1. Tag
2. Attributes
3. Text
Tag: Anything which is enclosed within the angular
bracket or 1st element or character enclosed within the
angular bracket is called as Tag.
<input type="hidden" name="jazoest" value="2895"
autocomplete="off">
• Here input is Tag
Attributes: Anything which is in the form of key and
value pair is called as Attributes.
<input type="hidden" name="jazoest" value="2895"
autocomplete="off">
• Here type="hidden"
name="jazoest"
value="2895"
<a
href="https://www.facebook.com/recover/initiate/?priva
cy_mutation_token=eyJ0eXBlIjowLCJjcmVhdGlvbl90
aW1lIjoxNjg4OTc4NjA1LCJjYWxsc2l0ZV9pZCI6Mz
gxMjI5MDc5NTc1OTQ2fQ%3D%3D&ars=faceb
ook_login" waprocessedanchor="true">Forgotten
password?</a>
Inspector