www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
What Will You Learn Today?
What does Selenium
WebDriver do?
Why use WebDriver?
Drawbacks of Selenium RC
How does WebDriver work?
What are Elements/ Objects? How to locate them? Hands-On: Testing Dynamic
Web Applications
1 2 3
4 65
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Let’s See The Similarities Between
Selenium RC & Selenium WebDriver
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
RC & WebDriver Similarities
Both RC and WebDriver support the use of different programming languages to design test scripts
Programming Language
Both RC and WebDriver support running tests in different browsers
Web Browser
Development Environment
Neither RC and WebDriver support use of IDE; only support for programming interface
Web Element Locator
Both RC and WebDriver make use of Elements/ Object locators/ WebDriver methods
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
WebDriver Was Founded To
Overcome the Drawbacks Of RC
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Selenium RC
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Selenium RC vs. Selenium WebDriver
FASTER
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Advantages Of WebDriver Over RC
SELENIUM WEBDRIVER
Simple Architecture
Slower because it uses a
Javascript program called
Selenium Core
RC Server is the middleman in the
interactions between browser & user
No support for
HTMLUnit browser
Faster because it interacts
with browser directly
Direct Interaction with user
Support for HTMLUnit
browser
SELENIUM RC
Complex Architecture
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
But, Selenium WebDriver
Cannot Do All On Its Own
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
I can use
WebDriver for
testing on local
machine
But, what
about testing
on a remote
machine
Testing Times For WebDriver
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
I can use
WebDriver for
testing on local
machine
But, what
about testing
on a remote
machine
NOTE: While testing on a remote machine, commands from WebDriver go to Selenium
RC Server which is then interpreted on remote machine to automate the browser
I can use both RC
server and
WebDriver while
testing on remote
machine
RC To The Rescue For WebDriver
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Now Let’s Concentrate More On
Selenium WebDriver
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
What Is Selenium WebDriver?
Selenium WebDriver is a programming interface to create and execute test cases
Test cases are created and executed using Elements locators/ Object locators/
WebDriver methods
Selenium WebDriver has only a programming interface; not IDE
Fast as it interacts with browser directly; RC needs RC server to interact with browser
•Each browser has its own driver on which the application runs. Selenium WebDriver
makes direct calls to the browser
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
WebDriver Features & Drawbacks
• Supports most Programming languages, Browsers & Operating systems
• Overcomes limitations of Selenium 1 like file upload, download, pop-ups & dialogs barrier
• WebDriver's API is simpler than RC's API. It does not contain redundant & confusing commands
• Supports Batch testing, Cross browser testing & Data driven testing
Selenium WebDriver Limitations
Selenium WebDriver Features
• Detailed test reports cannot be generated; RC generates detailed reports
• It doesn’t have IDE; difficult to create test cases
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Now, Let’s See How
Selenium WebDriver Works
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Working Of Selenium WebDriver
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Types Of Selenium WebDrivers
 WebDrivers are used to locate Objects/ Elements on the web page
 They have built in support for Automation
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Hands-On:
Testing Dynamic Web Applications
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Browser Elements & Its Operations
Launch browser, Navigate to specified Url,
Refresh, Close browser
Browser
Return page title, return page Url
Page
Click the link, check the existence, check enabled status
Link
Click the button, check displayed status, enabled
status, return button name
Button
Return image title, download/ upload image,
click image link
Image
Launch browser, Navigate to specified Url,
Refresh, Close browser
Text Area/ Error Message
Check display status/ enable status/ select/ unselect
Radio button/ Check box
Check display status/ enable status/ select item
Drop down box/ List box/ Combo box
Switch from Top window to specified frame,
Frame to top window
Frame
Return specified cell value, Return row
count, column count
Web Table/ HTML Table
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Method/ Function
Operations On Web Elements
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Methods/ Functions On Web Elements
This function is used to open a specified URL in the
browser window
Syntax:- driver.get(“URL”);
Example:- driver.get(“https://www.google.com”);
Get
This function is used to get the title of the
current page in the browser
Syntax:-
driver.getTitle();
Get Title
This function is used to get the URL of the current
page in the browser
Syntax:-
driver.getCurrentUrl();
Get Current URL
This function is used to get the source code of the
current page
Syntax:-
driver.getPageSource();
Get Page Source
Get Commands N a v i gate C o m man ds O t h e r B rows er C o m mands O t h e r C o m mands
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Methods/ Functions On Web Elements
This function is used to navigate to a new page in the
current browser window
Syntax:- driver.navigate().to(“URL”);
Example:- driver.navigate(). to(“https://www.google.com”);
Navigate To
This function is used to refresh the current page
in the browser window
Syntax:-
driver.navigate().refresh();
Navigate Refresh
This function is used to navigate to the web page
visited after the current page in the browser history
Syntax:-
driver.navigate().forward();
Navigate Forward
This function is used to navigate to the previously
visited page in the current window
Syntax:-
driver.navigate().back();
Navigate Back
G e t C o m mands Navigate Commands O t h e r B rows er C o m mands O t h e r C o m mands
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Methods/ Functions On Web Elements
This command is used to close the current page in the browser window
Syntax:- driver.close();
Close
This function is used to quit the browser window
Syntax:- driver.quit();
Quit
G e t C o m mands N a v i gate C o m man ds Other Browser Commands O t h e r C o m mands
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Methods/ Functions On Web Elements
findElement Command
This command is used to find elements/ objects on a web page
Example:- driver.findElement(By.name(“google”));
click Command
This command is used to click on an element/ object on the web page
Example:- driver.findElement(By.linkText(“Youtube”)).click();
sendKeys Command
This command is used to send characters/ text to the text box in the web page
Example:- driver.findElement(By.id(“Content-1”)).sendKeys(“18776”);
G e t C o m mands N a v i gate C o m man ds Other CommandsO t h e r B rows er C o m mands
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
But How Do We Locate
Browser Elements?
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Web Elements And Locators
We can identify various elements on the web using Locators.
Locators are addresses that identify a web element uniquely within the page.
There are 8 Locators in Selenium to identify Elements:
• By ID
• By Name
• By Class Name
• By Tag Name
• By Link Text
• By Partial Link Text
• By CSS
• By XPATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
Elements on the web page can be located using Element ID
Every element on a web page has a unique ID
The ID can also be auto generated
Syntax:-
driver.findElement(By.id(“xxx”));
Example:
driver.findElement(By.id(“Content-1”)).sendKeys(“18776”);
By ID B y N a m e B y C l a s s N ame B y Ta g N a m e B y L i n k Tex t B y P a rti al L i n k Text B y CS SB y X PATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
Elements on the web page can also be located using Element Name
Every element on a web page has a unique Name
Syntax:-
driver.findElement(By.name(“xxx”));
Example:
driver.findElement(By.name(“Email”)).sendKeys(abc@edureka.co);
B y I D By Name B y C l a s s N ame B y Ta g N a m e B y L i n k Tex t B y P a rti al L i n k Text B y CS SB y X PATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
Elements on the web page can also be located using Element’s Class Name
Class Name can be the same for more than one Element
Syntax:-
driver.findElement(By.className(“xxx”));
Example:
driver.findElement(By.className(“Country”).sendKeys(“India”);
B y N a m e By Class Name B y Ta g N a m e B y L i n k Tex t B y P a rti al L i n k Text B y CS SB y X PATHB y I D
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
B y N a m e B y C l a s s N ame By Tag Name B y L i n k Tex tB y I D
Elements on the web page can also be located using Element’s Tag Name
Syntax:-
driver.findElement(By.tagName(“xxx”));
Example:
driver.findElement(By.tagName(“A1”)).sendKeys(“India-123”);
B y P a rti al L i n k Text B y CS SB y X PATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
B y N a m e B y C l a s s N ame B y Ta g N a m e By Link TextB y I D
Any hyperlinked word on the web page can be located by using the exact
word as it is
Syntax:-
driver.findElement(By.linkText(“xxx”));
Example:
driver.findElement(By.linkText(“Youtube”)).click();
B y P a rti al L i n k Text B y CS SB y X PATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
B y N a m e B y C l a s s N ame B y Ta g N a m e B y L i n k Tex tB y I D
Any hyperlinked word on the web page can also be located by using the
word partially
Syntax:-
driver.findElement(By.partialLinkText(“xxx”));
Example:
driver.findElement(By.partialLinkText(“Youtu”)).click();
By Partial Link Text B y CS SB y X PATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
B y N a m e B y C l a s s N ame B y Ta g N a m e B y L i n k Tex tB y I D
This attribute is used to locate elements with its location
Syntax:-
driver.findElement(By.xpath(“xxx”));
Example:
driver.findElement(By.xpath(“.//*[@id=‘Email’]”)).sendKeys(abc@dureka.co);
B y P a rti al L i n k Text B y CS SBy XPATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Commands To Locate Web Elements
This attribute is used to locate elements with its style properties
Syntax:-
driver.findElement(By.css(“xxx”));
Example:
driver.findElement(By.cssSelector(“#next”)).click();
B y N a m e B y C l a s s N ame B y Ta g N a m e B y L i n k Tex tB y I D B y P a rti al L i n k Text By CSSB y X PATH
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING
Course Details & Customer Reviews
Go to www.edureka.co/testing-with-selenium-webdriver
Get Edureka Certified in Selenium Today!
Radha Muthian says, “I learned Selenium WebDriver and the course
was very helpful to automate the Web Applications. The lifetime
access of classes helps a lot to refer back and download the codes.”
Vijay Krishnan says, “I have attended Selenium Web driver Certification with
Edureka. The trainer has explained all the concepts of the course in detail
manner which was very easy to understand. Worth for the money spent!!!!”
Tom Tully says, “I wanted to learn Selenium Webdriver in a live, real
course, not self paced, so there would be pressure on me to finish.
Edureka accomplished this at a price far lower than an in-person class,
and as far as I know they are the only internet class that has live lectures
on this subject. Teacher was very knowledgeable. I learned basic use of
Selenium. No problem with me being in US and teacher in India. They
have US 800 number.”
Suhas Kashyap says, “The online Course(Selenium Webdriver), which
I took from Edureka was interactive and also helped me to improve
my knowledge on selenium. Further helped me in changing the job as
well. Thanks Edureka Team... :).”
www.edureka.co/testing-with-selenium-webdriverEDUREKA’S SELENIUM CERTIFICATION TRAINING

More Related Content

PPTX
Introduction to Selenium Web Driver
PPTX
Selenium test automation
PDF
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
PPTX
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
PPTX
An overview of selenium webdriver
PPTX
Test Automation and Selenium
PPT
Selenium Presentation at Engineering Colleges
PDF
Automation Testing using Selenium Webdriver
Introduction to Selenium Web Driver
Selenium test automation
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
An overview of selenium webdriver
Test Automation and Selenium
Selenium Presentation at Engineering Colleges
Automation Testing using Selenium Webdriver

What's hot (20)

PDF
Web application testing with Selenium
PPTX
Automation - web testing with selenium
PPT
QSpiders - Automation using Selenium
PPT
Selenium
ODP
Selenium ppt
PPT
Selenium ppt
PPTX
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
PPT
Selenium Concepts
PPTX
Selenium with java
PPTX
Automation Testing by Selenium Web Driver
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
PPTX
Selenium IDE Tutorial For Beginners | Selenium IDE Tutorial | What Is Seleniu...
PPT
Web Test Automation with Selenium
PDF
Automation Testing using Selenium
PPTX
Introduction to selenium
PPTX
Selenium
PPTX
Selenium
PPTX
Selenium introduction
PDF
SELENIUM PPT.pdf
PPTX
Python selenium
Web application testing with Selenium
Automation - web testing with selenium
QSpiders - Automation using Selenium
Selenium
Selenium ppt
Selenium ppt
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Selenium Concepts
Selenium with java
Automation Testing by Selenium Web Driver
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium IDE Tutorial For Beginners | Selenium IDE Tutorial | What Is Seleniu...
Web Test Automation with Selenium
Automation Testing using Selenium
Introduction to selenium
Selenium
Selenium
Selenium introduction
SELENIUM PPT.pdf
Python selenium
Ad

Similar to Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Selenium Tutorial | Edureka (20)

PPTX
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
PDF
Webinar: Selenium WebDriver - Automation Uncomplicated
PDF
Automation Using Selenium Webdriver
PPTX
Selenium IDE Tutorial For Beginners | What Is Selenium IDE? | Selenium Tutori...
PDF
Selenium 1july
PDF
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
PPTX
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
PDF
Designing keyword and Data Driven Automation framework with Selenium
PDF
Selenium web driver
PDF
Automate Web Apps With Selenium
PDF
Selenium - Introduction
PPTX
Selenium.pptx
PPTX
Data driven Automation Framework with Selenium
PDF
Web driver selenium simplified
PPT
Selenium Java for Beginners by Sujit Pathak
PPTX
Selenium web driver
PPTX
Test automation using selenium
PDF
Selenium bootcamp slides
PPTX
Selenium.pptx
PPT
Test automation using selenium presented by Quontra Solutions
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Webinar: Selenium WebDriver - Automation Uncomplicated
Automation Using Selenium Webdriver
Selenium IDE Tutorial For Beginners | What Is Selenium IDE? | Selenium Tutori...
Selenium 1july
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Designing keyword and Data Driven Automation framework with Selenium
Selenium web driver
Automate Web Apps With Selenium
Selenium - Introduction
Selenium.pptx
Data driven Automation Framework with Selenium
Web driver selenium simplified
Selenium Java for Beginners by Sujit Pathak
Selenium web driver
Test automation using selenium
Selenium bootcamp slides
Selenium.pptx
Test automation using selenium presented by Quontra Solutions
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka

Recently uploaded (20)

PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PDF
Wondershare Recoverit Full Crack New Version (Latest 2025)
PDF
iTop VPN Crack Latest Version Full Key 2025
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PPTX
GSA Content Generator Crack (2025 Latest)
PPTX
CNN LeNet5 Architecture: Neural Networks
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
DOCX
How to Use SharePoint as an ISO-Compliant Document Management System
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
Visual explanation of Dijkstra's Algorithm using Python
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
PDF
How Tridens DevSecOps Ensures Compliance, Security, and Agility
PDF
MCP Security Tutorial - Beginner to Advanced
PPTX
Computer Software - Technology and Livelihood Education
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Wondershare Recoverit Full Crack New Version (Latest 2025)
iTop VPN Crack Latest Version Full Key 2025
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
DNT Brochure 2025 – ISV Solutions @ D365
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
GSA Content Generator Crack (2025 Latest)
CNN LeNet5 Architecture: Neural Networks
Advanced SystemCare Ultimate Crack + Portable (2025)
How to Use SharePoint as an ISO-Compliant Document Management System
Oracle Fusion HCM Cloud Demo for Beginners
Visual explanation of Dijkstra's Algorithm using Python
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
How Tridens DevSecOps Ensures Compliance, Security, and Agility
MCP Security Tutorial - Beginner to Advanced
Computer Software - Technology and Livelihood Education
Autodesk AutoCAD Crack Free Download 2025
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency

Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Selenium Tutorial | Edureka

Editor's Notes

  • #7: Well, there are multiple reasons. Here are few in no particular order Webdriver offers a cleaner API than selenium RC. The most common example is you have selenium.type and selenium.typeKeys, both does the same thing in effect. Webdriver offers just one method sendKeys for all type related action. In short you can say, webdriver classes are better organized? Selenium works using javascript injection. If you have worked with selenium for sometime, then you must be aware of the same origin policy issues and limitations of javascript injection. Webdriver overcomes this by using a driver for each browser. For firefox this means, webdriver attaches itself to browser as an addon, for IE it uses automation atoms and for chrome and opera it uses the chrome driver. Due to the above mentioned reason, webdriver tests are faster than Selenium Its much easier to extend webdriver compared to selenium. Webdriver provides extendable action classes which you can combine and create your own customized actions. Webdriver can support testing in mobile devices such as Iphone, ipad and android phones and tablets. Last but not at all the least, there is no development work happening in selenium project now. Whatever is available now, will continue to be supported but no new methods or enhancements are happening for selenium. Selenium and webdriver projects were merged some years back and became Selenium 2.0 You can find additional details about webdriver here and reason for merger here
  • #8: Well, there are multiple reasons. Here are few in no particular order Webdriver offers a cleaner API than selenium RC. The most common example is you have selenium.type and selenium.typeKeys, both does the same thing in effect. Webdriver offers just one method sendKeys for all type related action. In short you can say, webdriver classes are better organized? Selenium works using javascript injection. If you have worked with selenium for sometime, then you must be aware of the same origin policy issues and limitations of javascript injection. Webdriver overcomes this by using a driver for each browser. For firefox this means, webdriver attaches itself to browser as an addon, for IE it uses automation atoms and for chrome and opera it uses the chrome driver. Due to the above mentioned reason, webdriver tests are faster than Selenium Its much easier to extend webdriver compared to selenium. Webdriver provides extendable action classes which you can combine and create your own customized actions. Webdriver can support testing in mobile devices such as Iphone, ipad and android phones and tablets. Last but not at all the least, there is no development work happening in selenium project now. Whatever is available now, will continue to be supported but no new methods or enhancements are happening for selenium. Selenium and webdriver projects were merged some years back and became Selenium 2.0 You can find additional details about webdriver here and reason for merger here
  • #9: Selenium RC injects javascript function into browsers when the web page is loaded. Selenium WebDriver drives the browser using browser's built-in support.
  • #36: Add photos