27
WAY2AUTOMATION SELENIUM / WEBDRIVER TRAINING © 2010, way2automation.com

Selenium demo

Embed Size (px)

Citation preview

Page 1: Selenium demo

WAY2AUTOMATION

SELENIUM / WEBDRIVER TRAINING

© 2010, way2automation.com

Page 2: Selenium demo

© 2010, way2automation.com

Page 3: Selenium demo

© 2010, way2automation.com

Page 4: Selenium demo

SELENIUM & FEATURES

SUPPORTS MULTIPLE BROWSERS :

© 2010, way2automation.com

Page 5: Selenium demo

SELENIUM & FEATURES

SUPPORTS MULTIPLE LANGUAGES:

© 2010, way2automation.com

Page 6: Selenium demo

SELENIUM & FEATURES

SUPPORTS MULTIPLE LANGUAGES:

© 2010, way2automation.com

Page 7: Selenium demo

ADDONS :

© 2010, way2automation.com

Log4j API

DB Connectivity

Mail API

Reporting API

Cucumber

JBehave

Page 8: Selenium demo

ADDONS :

© 2010, way2automation.com

Page Object Modelling

H

Y

B

R

I

D

Keyword Driven

Page 9: Selenium demo

ADDONS :

© 2010, way2automation.com

Jenkins

Page 10: Selenium demo

What else?

© 2010, way2automation.com

Page 11: Selenium demo

Many reasons?

© 2010, way2automation.com

Page 12: Selenium demo

SELENIUM COMPONENTS

© 2010, way2automation.com

WebDriverRemoteControl GridIDE

Page 13: Selenium demo

SELENIUM IDE

ADD ON TO FIREFOX

GOOD TOOL FOR RECORD & PLAY ONLY

© 2010, way2automation.com

Page 14: Selenium demo

SELENIUM RC & FEATURES

SUPPORTS :

MULTIPLE BROWSERS

MULTIPLE LANGUAGES

MULTIPLE OS

© 2010, way2automation.com

Selenium Core is dependent on JavaScript

Page 15: Selenium demo

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.

Page 16: Selenium demo

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

Page 17: Selenium demo

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

Page 18: Selenium demo

SELENIUM 2.0 (WEBDRIVER)

& FEATURES

© 2010, way2automation.com

SUPPORTS :

MULTIPLE BROWSERS

MULTIPLE LANGUAGES

MULTIPLE OS

Page 19: Selenium demo

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…

Page 20: Selenium demo

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

Page 21: Selenium demo

SELENIUM GRID

© 2010, way2automation.com

Page 22: Selenium demo

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

Page 23: Selenium demo

© 2010, way2automation.com

Page 24: Selenium demo

© 2010, way2automation.com

2. Selenium Online Training

3. Class Room Training

1. Advance Video Tutorials

Page 25: Selenium demo

© 2010, way2automation.com

Page 26: Selenium demo
Page 27: Selenium demo

© 2010, way2automation.com