Beruflich Dokumente
Kultur Dokumente
Simona Pitam
Manual Testing
WEB
Application
❖ Faster Execution
❖ More Accurate
Features of
Automation
❖ Lesser Investment in Human Resources Testing
❖ Supports Regression
❖ Frequent Execution
Simona Pitam
❖ Supports Lights Out Execution
Selenium As Automation Testing Tool
Selenium is a suite of software tools to automate web browser
It is an open source frequently used for functional & regression testing
Supports Different PL:Java,Python,C#,
Supports Different OS:Windows, Mac, Linux,IOS,Android
Supports Different
Browsers:IE,Firefox,Chrome,Safari,Opera
Simona Pitam
Selenium VS Other Tools
Features QTP Selenium
❖ IDE
❖ RC
❖ Web Driver
❖ Grid
Simona Pitam
Selenium IDE
❖ Selenium IDE is a Firefox Plugin whis is used to create and execute test cases
❖ It record and plays back the interactions which the user had with the web
browser
❖ Using IDE, you can export the programming code in different programming
http://www.seleniumhq.org/download/
Simona Pitam
Selenium Ide Install On Chrome
Go to the following link:
https://chrome.google.com/webstore/detail/selenium-
ide/mooikfkahbdckldjjndioackbalphokd
Simona Pitam
Selenium RC
Selenium Remote Control (RC) is used to write web application test cases in
different PL
Deprecat
It interacts with browsers the help of Selenium RC Server ed
❖ In order to automate web actions you should find web page Elements
cases
For testing on Local machine you need Web Driver per Web Broser
https://sites.google.com/a/chromium.org/chromedriver/downloads
http://www.seleniumhq.org/
Simona Pitam
Selenium Web Drivers Features
Selenium Web Drivers Supports
PL: Java,C#,Python,Ruby
Browser:Chrome,Firefox,IE,Safari,Opera
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Simona Pitam
Selenium Grid
❖ Selenium Grid is used to run test scripts at the same time on multiple
machines
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Simona Pitam
Java Env
Download Eclipse
Selenium Server
http://www.seleniumhq.org/
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Simona Pitam
Write Script in Eclipse
Simona Pitam
Script Example
package simona.selenium.webdriver.tutorial.Javabasic;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor;
Simona Pitam
Import Jars into Eclipse
Right Click on Java Project Name
Simona Pitam
Identification Elements in Selenium
In Selenium we can find the element by function FindElement.by()
❖ Id
❖ Name
❖ ClassName
❖ Xpath
❖ Tagname
❖ css Selector
❖ linkText
❖ PartialLinkText