SlideShare a Scribd company logo
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 selenium
Filip Braun
 
Protractor for angularJS
Protractor for angularJSProtractor for angularJS
Protractor for angularJS
Krishna Kumar
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
Selenium
SeleniumSelenium
Selenium
conect2krish
 
Automated testing using Selenium & NUnit
Automated testing using Selenium & NUnitAutomated testing using Selenium & NUnit
Automated testing using Selenium & NUnit
Alfred Jett Grandeza
 
JavaScript Testing VIA Selenium
JavaScript Testing VIA SeleniumJavaScript Testing VIA Selenium
JavaScript Testing VIA Selenium
Adam 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-applications
Andrii Soldatenko
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
Ana 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 Insight
Splunk
 
Protractor overview
Protractor overviewProtractor overview
Protractor overview
Abhishek Yadav
 
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
Sargis Sargsyan
 
Selenium and Sauce Labs
Selenium and Sauce LabsSelenium and Sauce Labs
Selenium and Sauce Labs
hugs
 
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 Application
Craig Trim
 
Zalenium - Czyli lepszy Selenium Grid
Zalenium - Czyli lepszy Selenium GridZalenium - Czyli lepszy Selenium Grid
Zalenium - Czyli lepszy Selenium Grid
Michał Ś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 team
Joe Ferguson
 
Selenium Tips & Tricks
Selenium Tips & TricksSelenium Tips & Tricks
Selenium Tips & Tricks
Dave 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 introduction
Selenium introductionSelenium introduction
Selenium introduction
Deepak Kumar Digar
 
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 IDE
Murageppa-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 selenium
Ducat
 
Whys and Hows of Automation
Whys and Hows of AutomationWhys and Hows of Automation
Whys and Hows of Automation
vodQA
 
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
Azizeh Hasan
 
Selenium
SeleniumSelenium
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
Naresh 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.pptx
Syntax Technologies
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
Khaja Moiz Uddin
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Automated ui-testing
Automated ui-testingAutomated ui-testing
Automated ui-testing
Slobodan Lohja
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
Colin McDonald
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
Sachin-QA
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
ANKUR-BA
 
Selenium testing - Handle Elements in WebDriver
Selenium testing - Handle Elements in WebDriver Selenium testing - Handle Elements in WebDriver
Selenium testing - Handle Elements in WebDriver
Vibrant Technologies & Computers
 
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
 
Selenium presentation
Selenium presentationSelenium presentation
Selenium presentation
shivani thakur
 

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

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
maazsz111
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 

Recently uploaded (20)

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 

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