selenium topic 4 - selenium web driver set up

8
Copyright 2015 IT Professional Academy 1 Selenium- Training Topic - 4

Upload: itprofessional-academy

Post on 15-Apr-2017

156 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 1

Selenium- Training

Topic - 4

Page 2: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 2

Agenda• Environment setup

• Configure Eclipse with webdriver

• Running first Test case

• Running Test on Chrome browser

• Running Test on IE browser

Page 3: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 3

Environment Set UpJava:1. First of all download the JDK executable from

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2. Install the downloaded exe and locate the jdk folder under path: C:\Program Files\Java

JAVA Env setup:1. Set up windows environment variables with [JAVA_HOME,

C:\Program Files\Java\jdk1.7.0_55 and PATH variable with value: %JAVA_HOME%\bin

2. Apply and save the changes.3. Go to command prompt and type command javac and

enter. (To check if setup is done successfully.)

Page 4: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 4

Eclipse configuration• Download eclipse 4.3 or above version from

https://eclipse.org/downloads/

• Launch Eclipse IDE and open JAVA perspective.

• Now Create new JAVA project.

• Add Webdriver standalone server JAR into build path of newly created project.

• Now you are all set to write your first automation test script.

Page 5: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 5

Running first test caseScenario to Automate• Launch the Firefox browser• Open website “”• Print a Message to display that the website is opened

successfully• Wait for 5 Seconds• Close the Browser

Page 6: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 6

Scenario to Automate• Launch the Chrome browser.• Open website “”• Print a Message to display that the website is opened

successfully• Wait for 5 Seconds• Close the Browser

Running test on Chrome

Page 7: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 7

Running test on IE browser

Scenario to Automate• Launch the IE browser.• Open website “”• Print a Message to display that the website is opened

successfully• Wait for 5 Seconds• Close the Browser

Page 8: Selenium topic 4 - Selenium Web Driver Set Up

Copyright 2015 IT Professional Academy 8

Topic 4 Ends.

Thank you.