SlideShare a Scribd company logo
SELENIUM WEBDRIVER – WEB AUTOMATION
PRESENTER
SHOBIKA RAMASUBBARAYALU
AGENDA
• Selenium - Introduction
• Suite components
• WebDriver - Architecture
• WebDriver – Advantages & Disadvantages
• Pre-requisite for Scripting
• Element locators in WebDriver
• Element locators - Examples
• Basic action commands
• Demo
• Tutorial Resources
SELENIUM
• Selenium is a open source automated testing suite each catering to different testing needs
• Focused on automating web-based applications across different browsers and platforms
• It has four components
Selenium
Suite
Selenium
IDE
Selenium
RC
Selenium
WebDriver
Selenium
Grid
SELENIUM SUITE COMPONENTS
Selenium IDE
• Supports only
FireFox
• Conditional
operations are not
supported
Selenium RC
• Needs separate
RC server
• API has redundant
and confusing
commands
• No direct browser
interaction
• Slow execution
Selenium
WebDriver
• Direct
Communication
with browser
• No need separate
server
• Simple commands
• Faster execution
Selenium
Grid
• Similar
architecture as RC
• Requires RC
server to run in
multiple browser
and environments
WHY SELENIUM WEBDRIVER?
ARCHITECTURE - WHY SELENIUM WEBDRIVER?
WebDriver Remote Control (RC)
ADVANTAGES & DISADVANTAGES OF WEBDRIVER
- Direct interaction
with browser
- Faster than any
other selenium
component
- Easy and stable API
commands
- Cannot readily
support new browsers
- No built-in
mechanism to
generate test result
reports
- Separate drivers
for different browsers
Advantages
Disadvantages
PRE-REQUISITE FOR SELENIUM SCRIPTING
Testing
Framework(
Junit/TestNG)
Any
Programming
knowledge
(JAVA)
HTML
ELEMENT LOCATORS IN WEBDRIVER
• Element locator is necessary to work with selenium automation testing tool.
• When selenium test run, first it will locate element from page and then it will perform given action
on it like click, type, select etc.
ID Name Tag
Name
Class
Name Link CSS
Selector
XPath
ELEMENT LOCATORS - EXAMPLES
Locator as ID Locator as Name
So, in the ideal case, the GUI will employ one of these techniques to identify/tag web elements where
ever possible in order to facilitate easier maintenance and reliable automation of tests.
BASIC ACTION COMMANDS
Actions Commands
Open URL in a browser driver.get(“anyurl”)
Clicking any element on the page driver.findElement(By.id(“anycontrol")).click
Typing text in any textbox or text area driver.findElement(By.name(“txt")).sendKeys("Name");
Clear text in any textbox or text area driver.findElement(By.name(“txt")).clear();
Get Page title driver.getTitle();
Get current ul of the page driver.getCurrentUrl();
Navigate to ul/back/forward driver.navigate().to(“anyurl");
driver.navigate().back();
driver.navigate().forward(); -
Get text of any control driver.findElement(By.name(“txt")).getText();
Wait Thread.sleep(5000);
Dropdown selection /deselection Select dropdown = new Select(driver.findElement(By.id(“dropdownlist")));
dropdown.selectByVisibleText("Audi");
Any Questions??
Selenium web driver

More Related Content

What's hot (20)

PPTX
Cypress Automation
Susantha Pathirana
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
PPTX
Data driven Automation Framework with Selenium
Edureka!
 
PPTX
Automation test framework with cucumber – BDD
123abcda
 
PDF
Postman
Igor Shubovych
 
PPTX
Automation Framework Presentation
Ben Ngo
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
ODP
Selenium ppt
Anirudh Raja
 
PPTX
Test automation framework
QACampus
 
PDF
Test Automation Framework Design | www.idexcel.com
Idexcel Technologies
 
PPT
Automated Testing vs Manual Testing
Directi Group
 
PPT
Automation testing
Biswajit Pratihari
 
PPTX
Unit testing
princezzlove
 
PPTX
Selenium test automation
Srikanth Vuriti
 
PPT
Automated Web Testing Using Selenium
Weifeng Zhang
 
PPTX
Introduction to selenium
Archana Krushnan
 
ODP
Beginners - Get Started With Unit Testing in .NET
Baskar K
 
PPT
Selenium Automation Framework
Mindfire Solutions
 
PDF
Web automation using selenium.ppt
Ana Sarbescu
 
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Cypress Automation
Susantha Pathirana
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Data driven Automation Framework with Selenium
Edureka!
 
Automation test framework with cucumber – BDD
123abcda
 
Automation Framework Presentation
Ben Ngo
 
Test Automation and Selenium
Karapet Sarkisyan
 
Selenium ppt
Anirudh Raja
 
Test automation framework
QACampus
 
Test Automation Framework Design | www.idexcel.com
Idexcel Technologies
 
Automated Testing vs Manual Testing
Directi Group
 
Automation testing
Biswajit Pratihari
 
Unit testing
princezzlove
 
Selenium test automation
Srikanth Vuriti
 
Automated Web Testing Using Selenium
Weifeng Zhang
 
Introduction to selenium
Archana Krushnan
 
Beginners - Get Started With Unit Testing in .NET
Baskar K
 
Selenium Automation Framework
Mindfire Solutions
 
Web automation using selenium.ppt
Ana Sarbescu
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 

Viewers also liked (20)

PDF
Selenium
mdiliyazm
 
PPTX
Automation Testing by Selenium Web Driver
Cuelogic Technologies Pvt. Ltd.
 
PDF
Popular Agile Methods
Shobika Ramasubbarayalu
 
PDF
Upgrading to Selenium WebDriver version 3
Alan Richardson
 
PDF
Webinar: Selenium WebDriver - Automation Uncomplicated
Edureka!
 
PPTX
Selenium basic
Dasun Eranthika
 
PDF
Bdd and-testing
malcolmt
 
PPTX
Selenium topic 1- Selenium Basic
ITProfessional Academy
 
PPTX
BDD in Automation Testing
Scrum Breakfast Vietnam
 
PPTX
Serenity BDD Workshop - 9th March 2016
vodqasg
 
PPTX
Automated Tests in Agile based on Serenity BDD - Michał Szybalski
ŁódQA
 
PPTX
Test Automation Frameworks: Assumptions, Concepts & Tools
Amit Rawat
 
KEY
Ui BDD Testing
Taras Kalapun
 
PDF
Serenity BDD - from executable specifications to living documentation
Alex Soto
 
PPTX
Behavior Driven Development - Live Webinar
Belatrix Software
 
PDF
Serenity-BDD training
Savvycom Savvycom
 
PPTX
Selenium topic 3 -Web Driver Basics
ITProfessional Academy
 
PPTX
Basic Selenium Training
Dipesh Bhatewara
 
PDF
Using Selenium 3 0
TEST Huddle
 
PPTX
Smarter ways to do selenium automation @ work, Selenium, automation
RIA RUI Society
 
Selenium
mdiliyazm
 
Automation Testing by Selenium Web Driver
Cuelogic Technologies Pvt. Ltd.
 
Popular Agile Methods
Shobika Ramasubbarayalu
 
Upgrading to Selenium WebDriver version 3
Alan Richardson
 
Webinar: Selenium WebDriver - Automation Uncomplicated
Edureka!
 
Selenium basic
Dasun Eranthika
 
Bdd and-testing
malcolmt
 
Selenium topic 1- Selenium Basic
ITProfessional Academy
 
BDD in Automation Testing
Scrum Breakfast Vietnam
 
Serenity BDD Workshop - 9th March 2016
vodqasg
 
Automated Tests in Agile based on Serenity BDD - Michał Szybalski
ŁódQA
 
Test Automation Frameworks: Assumptions, Concepts & Tools
Amit Rawat
 
Ui BDD Testing
Taras Kalapun
 
Serenity BDD - from executable specifications to living documentation
Alex Soto
 
Behavior Driven Development - Live Webinar
Belatrix Software
 
Serenity-BDD training
Savvycom Savvycom
 
Selenium topic 3 -Web Driver Basics
ITProfessional Academy
 
Basic Selenium Training
Dipesh Bhatewara
 
Using Selenium 3 0
TEST Huddle
 
Smarter ways to do selenium automation @ work, Selenium, automation
RIA RUI Society
 
Ad

Similar to Selenium web driver (20)

PPTX
Selenium.pptx
orbitprojects
 
PPTX
Basics of selenium containing features of selenium
Madhuri Lonikar
 
PPTX
Automated ui-testing
Slobodan Lohja
 
PPTX
Best java automation training institute in Bangalore - Selenium Labs
Selenium Labs
 
PDF
Selenium Automation Training in Hyderabad
anithastoitech
 
PPTX
Selenium Automation Training in Hyderabad
anithastoitech
 
PPTX
Selenium Automation Training in Hyderabad
anithastoitech
 
PPT
Selenium (1) (1)
Vishwan Aranha
 
PPTX
Selenium
Rakshitha Raviprakash
 
PPTX
Selenium
Batch2016
 
PPTX
Selenium
Batch2016
 
PPTX
Selenium
Batch2016
 
PPTX
Selenium
Ivan Aranha
 
PPTX
Selenium using Java
F K
 
PDF
Selenium - Introduction
Amr E. Mohamed
 
PPTX
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Edureka!
 
PPTX
Web Automation Testing for developers?
Victor Kushchenko
 
PPT
Selenium Concepts
Swati Bansal
 
PDF
Selenium Online Training
Nagendra Kumar
 
PPT
Automation with Selenium Presented by Quontra Solutions
Quontra Solutions
 
Selenium.pptx
orbitprojects
 
Basics of selenium containing features of selenium
Madhuri Lonikar
 
Automated ui-testing
Slobodan Lohja
 
Best java automation training institute in Bangalore - Selenium Labs
Selenium Labs
 
Selenium Automation Training in Hyderabad
anithastoitech
 
Selenium Automation Training in Hyderabad
anithastoitech
 
Selenium Automation Training in Hyderabad
anithastoitech
 
Selenium (1) (1)
Vishwan Aranha
 
Selenium
Batch2016
 
Selenium
Batch2016
 
Selenium
Batch2016
 
Selenium
Ivan Aranha
 
Selenium using Java
F K
 
Selenium - Introduction
Amr E. Mohamed
 
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Edureka!
 
Web Automation Testing for developers?
Victor Kushchenko
 
Selenium Concepts
Swati Bansal
 
Selenium Online Training
Nagendra Kumar
 
Automation with Selenium Presented by Quontra Solutions
Quontra Solutions
 
Ad

Recently uploaded (20)

PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
July Patch Tuesday
Ivanti
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
July Patch Tuesday
Ivanti
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 

Selenium web driver

  • 1. SELENIUM WEBDRIVER – WEB AUTOMATION PRESENTER SHOBIKA RAMASUBBARAYALU
  • 2. AGENDA • Selenium - Introduction • Suite components • WebDriver - Architecture • WebDriver – Advantages & Disadvantages • Pre-requisite for Scripting • Element locators in WebDriver • Element locators - Examples • Basic action commands • Demo • Tutorial Resources
  • 3. SELENIUM • Selenium is a open source automated testing suite each catering to different testing needs • Focused on automating web-based applications across different browsers and platforms • It has four components Selenium Suite Selenium IDE Selenium RC Selenium WebDriver Selenium Grid
  • 4. SELENIUM SUITE COMPONENTS Selenium IDE • Supports only FireFox • Conditional operations are not supported Selenium RC • Needs separate RC server • API has redundant and confusing commands • No direct browser interaction • Slow execution Selenium WebDriver • Direct Communication with browser • No need separate server • Simple commands • Faster execution Selenium Grid • Similar architecture as RC • Requires RC server to run in multiple browser and environments
  • 6. ARCHITECTURE - WHY SELENIUM WEBDRIVER? WebDriver Remote Control (RC)
  • 7. ADVANTAGES & DISADVANTAGES OF WEBDRIVER - Direct interaction with browser - Faster than any other selenium component - Easy and stable API commands - Cannot readily support new browsers - No built-in mechanism to generate test result reports - Separate drivers for different browsers Advantages Disadvantages
  • 8. PRE-REQUISITE FOR SELENIUM SCRIPTING Testing Framework( Junit/TestNG) Any Programming knowledge (JAVA) HTML
  • 9. ELEMENT LOCATORS IN WEBDRIVER • Element locator is necessary to work with selenium automation testing tool. • When selenium test run, first it will locate element from page and then it will perform given action on it like click, type, select etc. ID Name Tag Name Class Name Link CSS Selector XPath
  • 10. ELEMENT LOCATORS - EXAMPLES Locator as ID Locator as Name So, in the ideal case, the GUI will employ one of these techniques to identify/tag web elements where ever possible in order to facilitate easier maintenance and reliable automation of tests.
  • 11. BASIC ACTION COMMANDS Actions Commands Open URL in a browser driver.get(“anyurl”) Clicking any element on the page driver.findElement(By.id(“anycontrol")).click Typing text in any textbox or text area driver.findElement(By.name(“txt")).sendKeys("Name"); Clear text in any textbox or text area driver.findElement(By.name(“txt")).clear(); Get Page title driver.getTitle(); Get current ul of the page driver.getCurrentUrl(); Navigate to ul/back/forward driver.navigate().to(“anyurl"); driver.navigate().back(); driver.navigate().forward(); - Get text of any control driver.findElement(By.name(“txt")).getText(); Wait Thread.sleep(5000); Dropdown selection /deselection Select dropdown = new Select(driver.findElement(By.id(“dropdownlist"))); dropdown.selectByVisibleText("Audi");