In this session you will learn:
Configuring Selenium - Webdriver
For more information: https://www.mindsmapped.com/courses/quality-assurance/qa-software-testing-training-for-beginners/
3. Page 3Classification: Restricted
WebDriver is a tool for automating testing web applications. It is popularly
known as Selenium 2.0.
WebDriver interacts directly with the browser without any intermediary,
unlike Selenium RC that depends on a server. It is used in the following
context:
• Multi-browser testing including improved functionality for browsers
which is not well-supported by Selenium RC (Selenium 1.0).
• Handling multiple frames, multiple browser windows, popups, and alerts.
• Complex page navigation.
• Advanced user navigation such as drag-and-drop.
• AJAX-based UI elements.
Selenium WebDriver
4. Page 4Classification: Restricted
Configuring Selenium - Webdriver
• Navigate to the selenium downloads section
http://www.seleniumhq.org/download/
• Download Selenium WebDriver by clicking on its version number as shown
below.
5. Page 5Classification: Restricted
• The downloaded file is in Zipped format and one has to unzip the contents
to map it to the project folder.
• The Unzipped contents would be displayed as shown below.
6. Page 6Classification: Restricted
Scripting using WebDriver
Step 1: Launch "Eclipse" from the Extracted Eclipse folder.
Step 2: Now create a 'New Project' from 'File' menu.
8. Page 8Classification: Restricted
Step 4 : Go to Libraries Tab
and select all the JAR's that
we have downloaded. Add
reference to all the JAR's of
Selenium WebDriver Library
folder and also selenium-
java-2.44.0.jar and selenium-
java-2.44.0-srcs.jar.
9. Page 9Classification: Restricted
Step 5 : Now right-click
on the package and
select 'New' >> 'Class' to
create a 'class'.
Step 6 : Now name the
class and make it the
main function