SlideShare a Scribd company logo
1 of 26
Simona Pitam
Selenium Tutorial
Manual Testing
Simona Pitam
Testing Web Apps Manually
Involves:
● Loading All Transaction
● Download Those
Transaction
● Creating Pass/Fail Report
for each
● Validation the Form
● Taking Screenshot for each
Validation
WEB
Application
Automation Testing Advantages
Simona Pitam
❖ Faster Execution
❖ More Accurate
❖ Lesser Investment in Human Resources
❖ Supports Regression
❖ Frequent Execution
❖ Supports Lights Out Execution
Features of
Automation
Testing
Selenium As Automation Testing Tool
Simona Pitam
Selenium is a suite of software tools to automate web browser
It is an open source frequently used for functional & regression testing
Supports Different PL:Java,Python,C#,
Supports Different OS:Windows, Mac, Linux,IOS,Android
Supports Different
Browsers:IE,Firefox,Chrome,Safari,Opera
Selenium VS Other Tools
Features QTP Selenium
License Required Open Source
Price High Low , because of Open
Source
Hardware Resource
consumption during the
execution
High Low
Coding Experience Low Should be very good
Environment Support Windows Windows,Linux,Mac
Language Support VB Script Java,C#,Python,Ruby
Simona Pitam
Selenium Suite of Tools
❖ IDE
❖ RC
❖ Web Driver
❖ Grid
Simona Pitam
Selenium IDE
Simona Pitam
❖ Selenium IDE is a Firefox Plugin whis is used to create and execute test cases
❖ It record and plays back the interactions which the user had with the web
browser
❖ Using IDE, you can export the programming code in different programming
languages such as: Java, C#,Python,Ruby
http://www.seleniumhq.org/download/
Selenium Ide Install On Chrome
Go to the following link:
https://chrome.google.com/webstore/detail/selenium-
ide/mooikfkahbdckldjjndioackbalphokd
Add it to Chrome & Install
Simona Pitam
Selenium RC
Selenium Remote Control (RC) is used to write web application test cases in
different PL
It interacts with browsers the help of Selenium RC Server
RC Server communication uses simple HTTP get/Post request
Remote Control
Server
Java
Ruby
Python
Deprecat
ed
Simona Pitam
How to Automate Web Process
❖ Web Page contains from HTML Elements
❖ In order to automate web actions you should find web page Elements
❖ We should use some locator technics
❖ We should identify the element and then we can do actions on elements
Simona Pitam
Web Driver
❖ In Selenium we have element identifier & then we can activate elements
❖ Selenium Web Driver is a programming interface to create & execute test
cases
❖ Test Cases are created and executed using Elements/Object Locator/Web
Driver method
❖ Selenium WEbDriver has programming interface not IDE
❖ Selenium IDE supports only IDE;doesn’t have programming interface
Simona Pitam
Web Driver
Each Browser has it own driver that application runs
Selenium Web Driver makes direct calls to the Browser
For testing on Local machine you need Web Driver per Web Broser
For Server Testing you need RC
Simona Pitam
Type of Web Brosers
Explorer Driver
Chrome Driver
❖ Download Chrome Driver Exe
❖ Chrome Driver->chromedriver.exe
https://sites.google.com/a/chromium.org/chromedriver/downloads
❖ Internet Explorer -> iedriver.exe
❖ Web Driver is API and not IDE
We should choose the Web Browser in order to run Web Driver
- API - Application Program Interface
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Download one of the drivers
In order to run test case we need Web Driver
Simona Pitam
Selenium Web Drivers Features
Selenium Web Drivers Supports
PL: Java,C#,Python,Ruby
Browser:Chrome,Firefox,IE,Safari,Opera
Report Generator can’t be generated
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Download one of the drivers
In order to run test case we need Web Driver
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Download one of the drivers
In order to run test case we need Web Driver
Simona Pitam
Selenium Grid
❖ Selenium Grid is used to run test scripts at the same time on multiple
machines
❖ Parallel Running can be done
❖ Hub and Nodes using jar files
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Download one of the drivers
In order to run test case we need Web Driver
Simona Pitam
Java Env
Download Eclipse
Verify Jdk Folders are created after installation
Download Selenium -standalone-server
Selenium Server
All these contains jar files
Open Eclipse & Start write Scripts
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Download one of the drivers
In order to run test case we need Web Driver
Simona Pitam
Selenium Scripts
Go to the following URL
http://www.seleniumhq.org/
Download one of the drivers
In order to run test case we need Web Driver
Simona Pitam
Write Script in Eclipse
❖ Add External jars
❖ Import all selenium jar files
❖ We can create different folder & import our jars
Simona Pitam
Script Example
package simona.selenium.webdriver.tutorial.Javabasic;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor;
Simona Pitam
Import Jars into Eclipse
Right Click on Java Project Name
Click On Build Path
Choose Configure Build Path
Add External jars (selenium - 3.8.0-standalone.jar,selenium-nodeps-3.8.1-
source.jar,selenium-3.8.1-nodeps.jar)
Simona Pitam
Identification Elements in Selenium
In Selenium we can find the element by function FindElement.by()
Element can be Identified by following:
❖ Id
❖ Name
❖ ClassName
❖ Xpath
❖ Tagname
❖ css Selector
❖ linkText
❖ PartialLinkText

More Related Content

What's hot

Testing desktop apps with selenium
Testing desktop apps with seleniumTesting desktop apps with selenium
Testing desktop apps with seleniumFilip Braun
 
Protractor for angularJS
Protractor for angularJSProtractor for angularJS
Protractor for angularJSKrishna Kumar
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleSpringPeople
 
Automated testing using Selenium & NUnit
Automated testing using Selenium & NUnitAutomated testing using Selenium & NUnit
Automated testing using Selenium & NUnitAlfred Jett Grandeza
 
JavaScript Testing VIA Selenium
JavaScript Testing VIA SeleniumJavaScript Testing VIA Selenium
JavaScript Testing VIA SeleniumAdam Christian
 
Java Restart with WebFX
Java Restart with WebFX Java Restart with WebFX
Java Restart with WebFX Nikita Lipsky
 
Building serverless-applications
Building serverless-applicationsBuilding serverless-applications
Building serverless-applicationsAndrii Soldatenko
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.pptAna Sarbescu
 
Cracking android app. Мокиенко Сергей
Cracking android app. Мокиенко СергейCracking android app. Мокиенко Сергей
Cracking android app. Мокиенко СергейAlina Dolgikh
 
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring InsightSplunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring InsightSplunk
 
Better Page Object Handling with Loadable Component Pattern
Better Page Object Handling with Loadable Component PatternBetter Page Object Handling with Loadable Component Pattern
Better Page Object Handling with Loadable Component PatternSargis Sargsyan
 
Selenium and Sauce Labs
Selenium and Sauce LabsSelenium and Sauce Labs
Selenium and Sauce Labshugs
 
Selenoid + Allure - How to use these tools together?
Selenoid + Allure - How to use these tools together?Selenoid + Allure - How to use these tools together?
Selenoid + Allure - How to use these tools together?Michał Ślęzak
 
Bluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationBluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationCraig Trim
 
Zalenium - Czyli lepszy Selenium Grid
Zalenium - Czyli lepszy Selenium GridZalenium - Czyli lepszy Selenium Grid
Zalenium - Czyli lepszy Selenium GridMichał Ślęzak
 
Midwest PHP 2017 DevOps For Small team
Midwest PHP 2017 DevOps For Small teamMidwest PHP 2017 DevOps For Small team
Midwest PHP 2017 DevOps For Small teamJoe Ferguson
 
Selenium Tips & Tricks
Selenium Tips & TricksSelenium Tips & Tricks
Selenium Tips & TricksDave Haeffner
 

What's hot (19)

Testing desktop apps with selenium
Testing desktop apps with seleniumTesting desktop apps with selenium
Testing desktop apps with selenium
 
Protractor for angularJS
Protractor for angularJSProtractor for angularJS
Protractor for angularJS
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
 
Selenium
SeleniumSelenium
Selenium
 
Automated testing using Selenium & NUnit
Automated testing using Selenium & NUnitAutomated testing using Selenium & NUnit
Automated testing using Selenium & NUnit
 
JavaScript Testing VIA Selenium
JavaScript Testing VIA SeleniumJavaScript Testing VIA Selenium
JavaScript Testing VIA Selenium
 
Java Restart with WebFX
Java Restart with WebFX Java Restart with WebFX
Java Restart with WebFX
 
Building serverless-applications
Building serverless-applicationsBuilding serverless-applications
Building serverless-applications
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
 
Cracking android app. Мокиенко Сергей
Cracking android app. Мокиенко СергейCracking android app. Мокиенко Сергей
Cracking android app. Мокиенко Сергей
 
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring InsightSplunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
Splunk conf2014 - Using Selenium and Splunk for Transaction Monitoring Insight
 
Protractor overview
Protractor overviewProtractor overview
Protractor overview
 
Better Page Object Handling with Loadable Component Pattern
Better Page Object Handling with Loadable Component PatternBetter Page Object Handling with Loadable Component Pattern
Better Page Object Handling with Loadable Component Pattern
 
Selenium and Sauce Labs
Selenium and Sauce LabsSelenium and Sauce Labs
Selenium and Sauce Labs
 
Selenoid + Allure - How to use these tools together?
Selenoid + Allure - How to use these tools together?Selenoid + Allure - How to use these tools together?
Selenoid + Allure - How to use these tools together?
 
Bluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationBluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web Application
 
Zalenium - Czyli lepszy Selenium Grid
Zalenium - Czyli lepszy Selenium GridZalenium - Czyli lepszy Selenium Grid
Zalenium - Czyli lepszy Selenium Grid
 
Midwest PHP 2017 DevOps For Small team
Midwest PHP 2017 DevOps For Small teamMidwest PHP 2017 DevOps For Small team
Midwest PHP 2017 DevOps For Small team
 
Selenium Tips & Tricks
Selenium Tips & TricksSelenium Tips & Tricks
Selenium Tips & Tricks
 

Similar to Selenium tutorial

Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Simplilearn
 
Selenium Introduction and IDE
Selenium Introduction and IDESelenium Introduction and IDE
Selenium Introduction and IDEMurageppa-QA
 
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...Edureka!
 
Python selenium
Python seleniumPython selenium
Python seleniumDucat
 
Whys and Hows of Automation
Whys and Hows of AutomationWhys and Hows of Automation
Whys and Hows of AutomationvodQA
 
Introduction to automated testing by Jordanian QA community
Introduction to automated testing by Jordanian QA communityIntroduction to automated testing by Jordanian QA community
Introduction to automated testing by Jordanian QA communityAzizeh Hasan
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using SeleniumNaresh Chintalcheru
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxSyntax Technologies
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxSyedZaeem9
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionSachin-QA
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionANKUR-BA
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...Simplilearn
 

Similar to Selenium tutorial (20)

Selenium introduction
Selenium introductionSelenium introduction
Selenium introduction
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
 
Selenium Introduction and IDE
Selenium Introduction and IDESelenium Introduction and IDE
Selenium Introduction and IDE
 
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
 
Python selenium
Python seleniumPython selenium
Python selenium
 
Whys and Hows of Automation
Whys and Hows of AutomationWhys and Hows of Automation
Whys and Hows of Automation
 
Introduction to automated testing by Jordanian QA community
Introduction to automated testing by Jordanian QA communityIntroduction to automated testing by Jordanian QA community
Introduction to automated testing by Jordanian QA community
 
Selenium
SeleniumSelenium
Selenium
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Automated ui-testing
Automated ui-testingAutomated ui-testing
Automated ui-testing
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium testing - Handle Elements in WebDriver
Selenium testing - Handle Elements in WebDriver Selenium testing - Handle Elements in WebDriver
Selenium testing - Handle Elements in WebDriver
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
 
Selenium presentation
Selenium presentationSelenium presentation
Selenium presentation
 

Recently uploaded

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

Selenium tutorial

  • 2. Manual Testing Simona Pitam Testing Web Apps Manually Involves: ● Loading All Transaction ● Download Those Transaction ● Creating Pass/Fail Report for each ● Validation the Form ● Taking Screenshot for each Validation WEB Application
  • 3. Automation Testing Advantages Simona Pitam ❖ Faster Execution ❖ More Accurate ❖ Lesser Investment in Human Resources ❖ Supports Regression ❖ Frequent Execution ❖ Supports Lights Out Execution Features of Automation Testing
  • 4. Selenium As Automation Testing Tool Simona Pitam Selenium is a suite of software tools to automate web browser It is an open source frequently used for functional & regression testing Supports Different PL:Java,Python,C#, Supports Different OS:Windows, Mac, Linux,IOS,Android Supports Different Browsers:IE,Firefox,Chrome,Safari,Opera
  • 5. Selenium VS Other Tools Features QTP Selenium License Required Open Source Price High Low , because of Open Source Hardware Resource consumption during the execution High Low Coding Experience Low Should be very good Environment Support Windows Windows,Linux,Mac Language Support VB Script Java,C#,Python,Ruby Simona Pitam
  • 6. Selenium Suite of Tools ❖ IDE ❖ RC ❖ Web Driver ❖ Grid Simona Pitam
  • 7. Selenium IDE Simona Pitam ❖ Selenium IDE is a Firefox Plugin whis is used to create and execute test cases ❖ It record and plays back the interactions which the user had with the web browser ❖ Using IDE, you can export the programming code in different programming languages such as: Java, C#,Python,Ruby http://www.seleniumhq.org/download/
  • 8. Selenium Ide Install On Chrome Go to the following link: https://chrome.google.com/webstore/detail/selenium- ide/mooikfkahbdckldjjndioackbalphokd Add it to Chrome & Install Simona Pitam
  • 9. Selenium RC Selenium Remote Control (RC) is used to write web application test cases in different PL It interacts with browsers the help of Selenium RC Server RC Server communication uses simple HTTP get/Post request Remote Control Server Java Ruby Python Deprecat ed Simona Pitam
  • 10. How to Automate Web Process ❖ Web Page contains from HTML Elements ❖ In order to automate web actions you should find web page Elements ❖ We should use some locator technics ❖ We should identify the element and then we can do actions on elements Simona Pitam
  • 11. Web Driver ❖ In Selenium we have element identifier & then we can activate elements ❖ Selenium Web Driver is a programming interface to create & execute test cases ❖ Test Cases are created and executed using Elements/Object Locator/Web Driver method ❖ Selenium WEbDriver has programming interface not IDE ❖ Selenium IDE supports only IDE;doesn’t have programming interface Simona Pitam
  • 12. Web Driver Each Browser has it own driver that application runs Selenium Web Driver makes direct calls to the Browser For testing on Local machine you need Web Driver per Web Broser For Server Testing you need RC Simona Pitam Type of Web Brosers Explorer Driver
  • 13. Chrome Driver ❖ Download Chrome Driver Exe ❖ Chrome Driver->chromedriver.exe https://sites.google.com/a/chromium.org/chromedriver/downloads ❖ Internet Explorer -> iedriver.exe ❖ Web Driver is API and not IDE We should choose the Web Browser in order to run Web Driver - API - Application Program Interface Simona Pitam
  • 14. Selenium Scripts Go to the following URL http://www.seleniumhq.org/ Download one of the drivers In order to run test case we need Web Driver Simona Pitam
  • 15. Selenium Web Drivers Features Selenium Web Drivers Supports PL: Java,C#,Python,Ruby Browser:Chrome,Firefox,IE,Safari,Opera Report Generator can’t be generated Simona Pitam
  • 16. Selenium Scripts Go to the following URL http://www.seleniumhq.org/ Download one of the drivers In order to run test case we need Web Driver Simona Pitam
  • 17. Selenium Scripts Go to the following URL http://www.seleniumhq.org/ Download one of the drivers In order to run test case we need Web Driver Simona Pitam
  • 18. Selenium Grid ❖ Selenium Grid is used to run test scripts at the same time on multiple machines ❖ Parallel Running can be done ❖ Hub and Nodes using jar files Simona Pitam
  • 19. Selenium Scripts Go to the following URL http://www.seleniumhq.org/ Download one of the drivers In order to run test case we need Web Driver Simona Pitam
  • 20. Java Env Download Eclipse Verify Jdk Folders are created after installation Download Selenium -standalone-server Selenium Server All these contains jar files Open Eclipse & Start write Scripts Simona Pitam
  • 21. Selenium Scripts Go to the following URL http://www.seleniumhq.org/ Download one of the drivers In order to run test case we need Web Driver Simona Pitam
  • 22. Selenium Scripts Go to the following URL http://www.seleniumhq.org/ Download one of the drivers In order to run test case we need Web Driver Simona Pitam
  • 23. Write Script in Eclipse ❖ Add External jars ❖ Import all selenium jar files ❖ We can create different folder & import our jars Simona Pitam
  • 24. Script Example package simona.selenium.webdriver.tutorial.Javabasic; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor; Simona Pitam
  • 25. Import Jars into Eclipse Right Click on Java Project Name Click On Build Path Choose Configure Build Path Add External jars (selenium - 3.8.0-standalone.jar,selenium-nodeps-3.8.1- source.jar,selenium-3.8.1-nodeps.jar) Simona Pitam
  • 26. Identification Elements in Selenium In Selenium we can find the element by function FindElement.by() Element can be Identified by following: ❖ Id ❖ Name ❖ ClassName ❖ Xpath ❖ Tagname ❖ css Selector ❖ linkText ❖ PartialLinkText