Upload
ishita-arora
View
195
Download
0
Embed Size (px)
Citation preview
WAY2AUTOMATION
SELENIUM / WEBDRIVER TRAINING
© 2010, way2automation.com
© 2010, way2automation.com
© 2010, way2automation.com
SELENIUM & FEATURES
SUPPORTS MULTIPLE BROWSERS :
© 2010, way2automation.com
SELENIUM & FEATURES
SUPPORTS MULTIPLE LANGUAGES:
© 2010, way2automation.com
SELENIUM & FEATURES
SUPPORTS MULTIPLE LANGUAGES:
© 2010, way2automation.com
ADDONS :
© 2010, way2automation.com
Log4j API
DB Connectivity
Mail API
Reporting API
Cucumber
JBehave
ADDONS :
© 2010, way2automation.com
Page Object Modelling
H
Y
B
R
I
D
Keyword Driven
ADDONS :
© 2010, way2automation.com
Jenkins
What else?
© 2010, way2automation.com
Many reasons?
© 2010, way2automation.com
SELENIUM COMPONENTS
© 2010, way2automation.com
WebDriverRemoteControl GridIDE
SELENIUM IDE
ADD ON TO FIREFOX
GOOD TOOL FOR RECORD & PLAY ONLY
© 2010, way2automation.com
SELENIUM RC & FEATURES
SUPPORTS :
MULTIPLE BROWSERS
MULTIPLE LANGUAGES
MULTIPLE OS
© 2010, way2automation.com
Selenium Core is dependent on JavaScript
How Selenium RC Works?
© 2010, way2automation.com
Selenium automates browsers.
Any element on Webpage can be
Automated using Selenium
In order to locate element on a Webpage
Selenium RC Injects JavaScript on the
Browser.
To support Javascript we need to start
Selenium Remote Control server on the
Machine.
Drawbacks?
© 2010, way2automation.com
Javascript makes the execution slower
Not supported on many browser that
Block 3rd party java script injection
For ex: Internet Explorer
And many more reasons…
Due to these reasons RC is deprecated
Now and WebDriver has been replaced
with the same
History of Selenium
© 2010, way2automation.com
Selenium IDE & RC was created by
Jason huggins at ThoughtWorks in 2004.
The challenges faced in RC was overcome
In WebDriver in 2006 by a lead engineer
in Google Named Simon Stewart
More info can be found at:http://docs.seleniumhq.org/docs/01_introducing_selenium.jsp
SELENIUM 2.0 (WEBDRIVER)
& FEATURES
© 2010, way2automation.com
SUPPORTS :
MULTIPLE BROWSERS
MULTIPLE LANGUAGES
MULTIPLE OS
SELENIUM 2.0 (WEBDRIVER)
& FEATURES
© 2010, way2automation.com
WebDriver overcomes the
challenges faced in RC. Javascript
injection was removed completely
COOL FEATURES:
NO SERVER
OBJECT EXTRACTION IN BULK
IPHONE/ANDRIOD DRIVERS
EVENT LISTENERS & MORE…
How WebDriver works?
© 2010, way2automation.com
WebDriver directly interacts with the native
browser code.
For every browser there’s a separate class
implemented.
So in case you need to work on Chrome
then there’s a class ChromeDriver and for
IE there’s a class InternetExplorerDriver.
It comes with a huge set of API’s
SELENIUM GRID
© 2010, way2automation.com
Parallel / Sequential Execution
© 2010, way2automation.com
500 Test
Cases
100 test
cases 200 test
cases
200
Test
Cases
HUB
NODE 1 NODE 2 - 6666
NODE 3 - 7777
4444
5555
B – IE, FF,
Chrome B - Chrome
B - Firefox
© 2010, way2automation.com
© 2010, way2automation.com
2. Selenium Online Training
3. Class Room Training
1. Advance Video Tutorials
© 2010, way2automation.com
© 2010, way2automation.com