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

PPTX
Selenium WebDriver
PPTX
Database management of blood bank
PDF
REST API and CRUD
PDF
Toll application - .NET and Android - SRS
ODP
Joomla REST API
PPTX
Beautfiul world of Flutter Testing
PPTX
Blood bank ppt
PDF
IRJET - College Enquiry Chatbot
Selenium WebDriver
Database management of blood bank
REST API and CRUD
Toll application - .NET and Android - SRS
Joomla REST API
Beautfiul world of Flutter Testing
Blood bank ppt
IRJET - College Enquiry Chatbot

What's hot (20)

PPTX
Industrial Internet
DOC
Формирование комплекса Интернет-коммуникация для FMCG-компаний
PPTX
What is Swagger?
PPTX
Selenium Locators
PPTX
Presentation on java project (bank management system)
DOCX
SRS for online examination system
PPTX
presentation of make a calendar in c language.
PDF
API_Testing_with_Postman
PPTX
Nodejs Session01
ODP
An Introduction To Java Profiling
PPTX
Different wait methods or commands in Selenium
DOCX
project report of social networking web sites
PPTX
Locators in selenium - BNT 09
PPTX
Android Battery optimization Android Apps
PPTX
Swagger - make your API accessible
PPT
Project presentation(View calender)
PPTX
Communication Protocols And Web Services
PDF
Netflix conductor
PPTX
Bus Tracking And Tracing System
PDF
IRJET- College Enquiry Chatbot System(DMCE)
Industrial Internet
Формирование комплекса Интернет-коммуникация для FMCG-компаний
What is Swagger?
Selenium Locators
Presentation on java project (bank management system)
SRS for online examination system
presentation of make a calendar in c language.
API_Testing_with_Postman
Nodejs Session01
An Introduction To Java Profiling
Different wait methods or commands in Selenium
project report of social networking web sites
Locators in selenium - BNT 09
Android Battery optimization Android Apps
Swagger - make your API accessible
Project presentation(View calender)
Communication Protocols And Web Services
Netflix conductor
Bus Tracking And Tracing System
IRJET- College Enquiry Chatbot System(DMCE)
Ad

Viewers also liked (20)

PDF
Selenium
PPTX
Automation Testing by Selenium Web Driver
PDF
Popular Agile Methods
PDF
Upgrading to Selenium WebDriver version 3
PDF
Webinar: Selenium WebDriver - Automation Uncomplicated
PPTX
Selenium basic
PDF
Bdd and-testing
PPTX
Selenium topic 1- Selenium Basic
PPTX
BDD in Automation Testing
PPTX
Serenity BDD Workshop - 9th March 2016
PPTX
Automated Tests in Agile based on Serenity BDD - Michał Szybalski
PPTX
Test Automation Frameworks: Assumptions, Concepts & Tools
KEY
Ui BDD Testing
PDF
Serenity BDD - from executable specifications to living documentation
PPTX
Behavior Driven Development - Live Webinar
PDF
Serenity-BDD training
PPTX
Selenium topic 3 -Web Driver Basics
PPTX
Basic Selenium Training
PDF
Using Selenium 3 0
PPTX
Smarter ways to do selenium automation @ work, Selenium, automation
Selenium
Automation Testing by Selenium Web Driver
Popular Agile Methods
Upgrading to Selenium WebDriver version 3
Webinar: Selenium WebDriver - Automation Uncomplicated
Selenium basic
Bdd and-testing
Selenium topic 1- Selenium Basic
BDD in Automation Testing
Serenity BDD Workshop - 9th March 2016
Automated Tests in Agile based on Serenity BDD - Michał Szybalski
Test Automation Frameworks: Assumptions, Concepts & Tools
Ui BDD Testing
Serenity BDD - from executable specifications to living documentation
Behavior Driven Development - Live Webinar
Serenity-BDD training
Selenium topic 3 -Web Driver Basics
Basic Selenium Training
Using Selenium 3 0
Smarter ways to do selenium automation @ work, Selenium, automation
Ad

Similar to Selenium web driver (20)

PPTX
Selenium.pptx
PPTX
Basics of selenium containing features of selenium
PPTX
Automated ui-testing
PPTX
Best java automation training institute in Bangalore - Selenium Labs
PDF
Selenium Automation Training in Hyderabad
PPTX
Selenium Automation Training in Hyderabad
PPTX
Selenium Automation Training in Hyderabad
PPTX
Selenium
PPTX
PPTX
Selenium
PPTX
Selenium
PPTX
Selenium
PPT
Selenium (1) (1)
PPTX
Selenium using Java
 
PDF
Selenium - Introduction
PPTX
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
PPTX
Web Automation Testing for developers?
PPT
Selenium Concepts
PDF
Selenium Online Training
PPT
Automation with Selenium Presented by Quontra Solutions
Selenium.pptx
Basics of selenium containing features of selenium
Automated ui-testing
Best java automation training institute in Bangalore - Selenium Labs
Selenium Automation Training in Hyderabad
Selenium Automation Training in Hyderabad
Selenium Automation Training in Hyderabad
Selenium
Selenium
Selenium
Selenium
Selenium (1) (1)
Selenium using Java
 
Selenium - Introduction
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Web Automation Testing for developers?
Selenium Concepts
Selenium Online Training
Automation with Selenium Presented by Quontra Solutions

Recently uploaded (20)

PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
PPTX
Information-Technology-in-Human-Society.pptx
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PPTX
Report in SIP_Distance_Learning_Technology_Impact.pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
NewMind AI Journal Monthly Chronicles - August 2025
PDF
Streamline Vulnerability Management From Minimal Images to SBOMs
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PPTX
Blending method and technology for hydrogen.pptx
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PDF
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
PDF
Identification of potential depression in social media posts
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
Introduction to MCP and A2A Protocols: Enabling Agent Communication
Rapid Prototyping: A lecture on prototyping techniques for interface design
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
Information-Technology-in-Human-Society.pptx
giants, standing on the shoulders of - by Daniel Stenberg
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Report in SIP_Distance_Learning_Technology_Impact.pptx
NewMind AI Weekly Chronicles – August ’25 Week IV
Co-training pseudo-labeling for text classification with support vector machi...
NewMind AI Journal Monthly Chronicles - August 2025
Streamline Vulnerability Management From Minimal Images to SBOMs
Lung cancer patients survival prediction using outlier detection and optimize...
Blending method and technology for hydrogen.pptx
EIS-Webinar-Regulated-Industries-2025-08.pdf
Data Virtualization in Action: Scaling APIs and Apps with FME
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
Identification of potential depression in social media posts

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");