-
CONTENTS
1. INTRODUCTION OF AUTOMATION TESTING
2. BROWSER LAUNCHING
3. WEB DRIVER METHODS
4. NAVIGATION COMMANDS
5. LOCATORS
6. WEBELEMENT METHODS
7. RADIO BUTTON
8. HANDLING MULTIPLE WEBELEMENTS AND AUTO SUGGESTION
9. CHECK BOX
10. DROP DOWN
11. WEB TABLE
12. JAVASCRIPT EXECUTOR
13. SCROLL UP AND SCROLL DOWN
14. SCREENSHOT
15. MOUSE HOVER ACTION
16. DRAG & DROP AND RIGHT CLICK
17. WINDOW HANDLING
18. FRAME HANDLING
19. ALERTS
20. WAIT
21. FILE UPLOADING USING ROBOT CLASS AND SENDKEYS
22. BROKEN LINKS
,INTRODUCTION OF AUTOMATION TESTING
Important Java concepts required for selenium:
Conditions(if, if-else, switch)
Loops(for, while, do-while, for-each)
Oops(Inheritance, Polymorphism, Encapsulation, Abstraction)
Method overloading, overriding
Constructors
String
Type casting, Upcasting
Code optimization
Collection(List and Set)
Automation:
Performing any task by using a tool or machine is called as automation.
Advantages:
1. Save the time.
2. Faster
3. Requires less manual effort
4. Restless.
5. Accuracy will be more
6. Multi-task
7. Requires less human resources
Dis Advantages:
1. Initial investment will be more.
2. It requires constant maintenance
3. It requires additional skill sets.
Automation testing:
Testing an application by using any automation tools is called as automation testing.
Automation Tool:
It’s a software or an application which is used to automate any applications.
o Ex: Selenium, QTP, Appium, AutoIT etc,
,Selenium:
It’s a free and open source automation tool which is used to automation any web based
applications.
Advantages of selenium:
It is freely available automation tool. To make use of selenium for commercial purpose we
don’t have to buy any license. It is available in below website.
o https://www.seleniumhq.org/download/
Anyone can view source code of selenium which is available in below website.
o https://github.com/SeleniumHQ/selenium
Using selenium we can automate any web based applications such as gmail, facebook,
flipkart etc…
It supports for 14 programming languages.
It supports for multiple platforms such as Windows, Mac, Linux.
It supports all most all the browsers such as chrome, firefox, ie, safari, opera.
High Level Architecture of selenium:
Selenium supports for multiple languages such as java, c, python etc,
Each of these languages contains generic libraries(Re-useable codes) which is
called as client/language binding.
These client binding will communicates with as API called WebDriver
Here client binding will communicate the actions which has to be performed on
the browser such as open the browser, enter url/text, click, close etc.
, To perform action on the browser WebDriver will communicate with driver
executable files such as chromedriver.exe, geckodriver.exe, IEDriverServer.exe
etc
Note:
1. To perform action on chrome browser, webdriver will communicate with
chromedriver.exe
2. To perform action on firefox browser, webdriver will communicate with
geckodriver.exe
3. To perform action on ie browser, webdriver will communicate with
IEDriverServer.exe
Java selenium Architecture:
Interface:
1. SearchContext
2. JavaScriptExecutor
CONTENTS
1. INTRODUCTION OF AUTOMATION TESTING
2. BROWSER LAUNCHING
3. WEB DRIVER METHODS
4. NAVIGATION COMMANDS
5. LOCATORS
6. WEBELEMENT METHODS
7. RADIO BUTTON
8. HANDLING MULTIPLE WEBELEMENTS AND AUTO SUGGESTION
9. CHECK BOX
10. DROP DOWN
11. WEB TABLE
12. JAVASCRIPT EXECUTOR
13. SCROLL UP AND SCROLL DOWN
14. SCREENSHOT
15. MOUSE HOVER ACTION
16. DRAG & DROP AND RIGHT CLICK
17. WINDOW HANDLING
18. FRAME HANDLING
19. ALERTS
20. WAIT
21. FILE UPLOADING USING ROBOT CLASS AND SENDKEYS
22. BROKEN LINKS
,INTRODUCTION OF AUTOMATION TESTING
Important Java concepts required for selenium:
Conditions(if, if-else, switch)
Loops(for, while, do-while, for-each)
Oops(Inheritance, Polymorphism, Encapsulation, Abstraction)
Method overloading, overriding
Constructors
String
Type casting, Upcasting
Code optimization
Collection(List and Set)
Automation:
Performing any task by using a tool or machine is called as automation.
Advantages:
1. Save the time.
2. Faster
3. Requires less manual effort
4. Restless.
5. Accuracy will be more
6. Multi-task
7. Requires less human resources
Dis Advantages:
1. Initial investment will be more.
2. It requires constant maintenance
3. It requires additional skill sets.
Automation testing:
Testing an application by using any automation tools is called as automation testing.
Automation Tool:
It’s a software or an application which is used to automate any applications.
o Ex: Selenium, QTP, Appium, AutoIT etc,
,Selenium:
It’s a free and open source automation tool which is used to automation any web based
applications.
Advantages of selenium:
It is freely available automation tool. To make use of selenium for commercial purpose we
don’t have to buy any license. It is available in below website.
o https://www.seleniumhq.org/download/
Anyone can view source code of selenium which is available in below website.
o https://github.com/SeleniumHQ/selenium
Using selenium we can automate any web based applications such as gmail, facebook,
flipkart etc…
It supports for 14 programming languages.
It supports for multiple platforms such as Windows, Mac, Linux.
It supports all most all the browsers such as chrome, firefox, ie, safari, opera.
High Level Architecture of selenium:
Selenium supports for multiple languages such as java, c, python etc,
Each of these languages contains generic libraries(Re-useable codes) which is
called as client/language binding.
These client binding will communicates with as API called WebDriver
Here client binding will communicate the actions which has to be performed on
the browser such as open the browser, enter url/text, click, close etc.
, To perform action on the browser WebDriver will communicate with driver
executable files such as chromedriver.exe, geckodriver.exe, IEDriverServer.exe
etc
Note:
1. To perform action on chrome browser, webdriver will communicate with
chromedriver.exe
2. To perform action on firefox browser, webdriver will communicate with
geckodriver.exe
3. To perform action on ie browser, webdriver will communicate with
IEDriverServer.exe
Java selenium Architecture:
Interface:
1. SearchContext
2. JavaScriptExecutor