SlideShare a Scribd company logo
3
Most read
4
Most read
Slide
1
Slide
2
Slide
3
Slide
4
Slide
5
Slide
6
Slide
7
Regional Training Centre,
DAV Public Schools, Jharkhand
Zone-C
~:Workshop for :~
Automation using Python
DATE:
07th Oct – 08th Oct-2023
~: Presented By :~
Manish Kumar
DAV Public School, Koyla Nagar
Slide
~: Agenda :~
Intro. About Selenium
Selenium is an open-source,
automated testing tool used to
test web app across multiple
browsers
Why Python for
automation
Python is object-oriented and
functional use for write test
cases.
Selenium Python
Module
Here we are knowing about
different kind of module like
webdriver, utils etc.
Web element in
Selenium
A high-level instruction set
for manipulating form
controls.
Test Case
Here we are working with
some example using Google
form.
Intro about Web driver
WebDriver is a remote
control interface that
enables introspection and
control of user agents.
Slide
2
Slide
3
Slide
4
Slide
5
Slide
6
Slide
7
Slide
Slide
2
Selenium
is Open
Source
Selenium is an open-source
suite of tools and libraries
that is used for browser
automation.
Supports
Cross
Browsing
Almost all the browsers are
supported by selenium like
chrome, firefox, IE etc.
Automates
Web
applications
Selenium is very powerful tools
that are provide automation in
web app, website
What is Selenium ?
Selenium is an open-source, automated testing
tool used to test web app across multiple browsers
Slide
3
Slide
4
Slide
5
Slide
6
Slide
7
Slide
Slide
2
Slide
3
~: Selenium Components :~
Slide
4
Slide
5
Slide
6
Slide
7
I
.
Components
If you ask a lazy programmer
about their favorite automation
tools, there is a high probability
that you will get “SELENIUM” as
an answer.
Selenium
Grid
Selenium Grid is tool which is used
together with Selenium RC. It runs
test on different machines against
different browsers in parallel
Selenium
WebDriver
Selenium WebDriver is a browser
automation framework that accepts
commands and send them to a
browser
Selenium
IDE
Selenium RC
Selenium Remote Control is a
server, written in java, that
accepts commands for the
browser via HTTP
R.W
.
G.
It is one of the simplest frameworks in
the selenium suite. It allows us to
record and playback the scripts.
Slide
Slide
2
Slide
3
Slide
4
Selenium with
Python
There are two way to run automation scripts
Configure Selenium
using Python
Configure PyDev
in Eclipse.
01 02
Slide
5
Slide
6
Slide
7
Configure Selenium using
Python
Download and install Python on Windows
Install Selenium libraries in python
Download and install Pycharm/python IDLE
Create a new project and write the selenium test script
Run and validate the test scripts
Slide
Slide
2
Slide
3
Slide
4
Slide
5
Element to be added
while writing test script
Slide
6
Slide
7
IDLE
3
DRIVER
2
PIP
1
Pip install
Selenium in
your prompt
Download
chrome
driver using
Google
Using IDLE
write from
selenium
import
webdriver
Slide
Slide
2
Slide
3
Slide
4
Slide
5
Slide
6
Lets Start
Slide
7
Step 1:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
Step 2:
driver = webdriver.Chrome()
Step 3:
driver.maximize_window()
Step 4:
driver.get(https://www.google.com/)
Step 5:
Now search your website and using web element
perform your task
Slide
Slide
2
Slide
3
Slide
4
Slide
5
Slide
6
Slide
7
Thanks for
Listening with
great patience
Ad

Recommended

Test Automation Using Selenium
Test Automation Using Selenium
Nikhil Kapoor
 
QSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
تست وب اپ ها با سلنیوم - علیرضا عظیم زاده میلانی
تست وب اپ ها با سلنیوم - علیرضا عظیم زاده میلانی
irpycon
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Python selenium
Python selenium
Ducat
 
Selenium - Introduction
Selenium - Introduction
Amr E. Mohamed
 
Software Course data, or computer programs
Software Course data, or computer programs
praveenbetech81
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
 
Selenium-Automation-The-Definitive-Guide (1).pptx
Selenium-Automation-The-Definitive-Guide (1).pptx
shivanshpandeyrewa20
 
Selenium Concepts
Selenium Concepts
Swati Bansal
 
A Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software Testing
Calidad Infotech
 
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
sumanthveeramallu9
 
Selenium presentation
Selenium presentation
shivani thakur
 
Selenium
Selenium
Jahan Murugassan
 
Selenium introduction
Selenium introduction
Pankaj Dubey
 
Selenium introduction
Selenium introduction
Deepak Kumar Digar
 
Introduction to selenium
Introduction to selenium
Khaja Moiz Uddin
 
Selenium.pptx
Selenium.pptx
Pandiya Rajan
 
Selenium- A Software Testing Tool
Selenium- A Software Testing Tool
Zeba Tahseen
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
Selenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium.pptx
Selenium.pptx
orbitprojects
 
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Selenium
Selenium
Satyam Pandey
 
Test Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
 
Selenium
Selenium
conect2krish
 
Introduction to selenium
Introduction to selenium
Archana Krushnan
 
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
Meiteguhf
 
Spotting Red Flags in Financial Statements.pdf
Spotting Red Flags in Financial Statements.pdf
Matthew Denegre
 

More Related Content

Similar to automation with python and selenium (20)

What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
 
Selenium-Automation-The-Definitive-Guide (1).pptx
Selenium-Automation-The-Definitive-Guide (1).pptx
shivanshpandeyrewa20
 
Selenium Concepts
Selenium Concepts
Swati Bansal
 
A Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software Testing
Calidad Infotech
 
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
sumanthveeramallu9
 
Selenium presentation
Selenium presentation
shivani thakur
 
Selenium
Selenium
Jahan Murugassan
 
Selenium introduction
Selenium introduction
Pankaj Dubey
 
Selenium introduction
Selenium introduction
Deepak Kumar Digar
 
Introduction to selenium
Introduction to selenium
Khaja Moiz Uddin
 
Selenium.pptx
Selenium.pptx
Pandiya Rajan
 
Selenium- A Software Testing Tool
Selenium- A Software Testing Tool
Zeba Tahseen
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
Selenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium.pptx
Selenium.pptx
orbitprojects
 
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Selenium
Selenium
Satyam Pandey
 
Test Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
 
Selenium
Selenium
conect2krish
 
Introduction to selenium
Introduction to selenium
Archana Krushnan
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
 
Selenium-Automation-The-Definitive-Guide (1).pptx
Selenium-Automation-The-Definitive-Guide (1).pptx
shivanshpandeyrewa20
 
A Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software Testing
Calidad Infotech
 
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
Selenium.pptxgsjdxhasdjhckcjjkdcbdcbvdciosdc
sumanthveeramallu9
 
Selenium introduction
Selenium introduction
Pankaj Dubey
 
Selenium- A Software Testing Tool
Selenium- A Software Testing Tool
Zeba Tahseen
 
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
Simplilearn
 
Selenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Test Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
 

Recently uploaded (20)

AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
Meiteguhf
 
Spotting Red Flags in Financial Statements.pdf
Spotting Red Flags in Financial Statements.pdf
Matthew Denegre
 
Quarter 3 Program Implementation Review and Performance Assessment
Quarter 3 Program Implementation Review and Performance Assessment
LaMariaAngelicaPunay
 
Introduction to Stack.pptx with stack info
Introduction to Stack.pptx with stack info
BhaveshKorane
 
Macciola_ICDL_Certificato ICDL Base_2575602_240510_151304.pdf
Macciola_ICDL_Certificato ICDL Base_2575602_240510_151304.pdf
Emanuele915564
 
climate_change_global_action_and_local_responsibility_xev18307.pptx
climate_change_global_action_and_local_responsibility_xev18307.pptx
hamdeyadd
 
S6 Hand-out.pdf,sjjdjejejjdjejdjdjdjddks
S6 Hand-out.pdf,sjjdjejejjdjejdjdjdjddks
nicebe546
 
_Smarter Hiring Starts with Better Sourcing Platforms.pdf
_Smarter Hiring Starts with Better Sourcing Platforms.pdf
vinay salarite
 
CCNA Training in Chandigarh: Launch Your Career in Networking Today
CCNA Training in Chandigarh: Launch Your Career in Networking Today
nitish1240728
 
PRESENTATION general mathematicsppt.pptx
PRESENTATION general mathematicsppt.pptx
DharylBallarta
 
How to Write a Powerful Resume for Career Development?
How to Write a Powerful Resume for Career Development?
StrengthsTheatre
 
美国学位证(SUNY Alfred毕业证书)纽约州立大学阿尔弗雷德分校毕业证书如何办理
美国学位证(SUNY Alfred毕业证书)纽约州立大学阿尔弗雷德分校毕业证书如何办理
taqyed
 
最新版意大利拉奎拉大学毕业证(AQUILA毕业证书)原版定制
最新版意大利拉奎拉大学毕业证(AQUILA毕业证书)原版定制
taqyea
 
465234430ujhhhb-ILM-Recruitment-Guide.pdf
465234430ujhhhb-ILM-Recruitment-Guide.pdf
CenWong
 
From reducing flood risks to conserving water
From reducing flood risks to conserving water
Ali Ata
 
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
taqyed
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaDigital-Literac...
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaDigital-Literac...
RoyCerbasPaderes
 
Untitled.pdf of mastering your offer to u
Untitled.pdf of mastering your offer to u
ArponSaha8
 
Behavioral Skills / Employability Skills
Behavioral Skills / Employability Skills
bonophool banerjee
 
PPT QC.pptxhjhjhkkkkkkkkhhuhuyyuyyyyyyyy
PPT QC.pptxhjhjhkkkkkkkkhhuhuyyuyyyyyyyy
zoobiarana76
 
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
Meiteguhf
 
Spotting Red Flags in Financial Statements.pdf
Spotting Red Flags in Financial Statements.pdf
Matthew Denegre
 
Quarter 3 Program Implementation Review and Performance Assessment
Quarter 3 Program Implementation Review and Performance Assessment
LaMariaAngelicaPunay
 
Introduction to Stack.pptx with stack info
Introduction to Stack.pptx with stack info
BhaveshKorane
 
Macciola_ICDL_Certificato ICDL Base_2575602_240510_151304.pdf
Macciola_ICDL_Certificato ICDL Base_2575602_240510_151304.pdf
Emanuele915564
 
climate_change_global_action_and_local_responsibility_xev18307.pptx
climate_change_global_action_and_local_responsibility_xev18307.pptx
hamdeyadd
 
S6 Hand-out.pdf,sjjdjejejjdjejdjdjdjddks
S6 Hand-out.pdf,sjjdjejejjdjejdjdjdjddks
nicebe546
 
_Smarter Hiring Starts with Better Sourcing Platforms.pdf
_Smarter Hiring Starts with Better Sourcing Platforms.pdf
vinay salarite
 
CCNA Training in Chandigarh: Launch Your Career in Networking Today
CCNA Training in Chandigarh: Launch Your Career in Networking Today
nitish1240728
 
PRESENTATION general mathematicsppt.pptx
PRESENTATION general mathematicsppt.pptx
DharylBallarta
 
How to Write a Powerful Resume for Career Development?
How to Write a Powerful Resume for Career Development?
StrengthsTheatre
 
美国学位证(SUNY Alfred毕业证书)纽约州立大学阿尔弗雷德分校毕业证书如何办理
美国学位证(SUNY Alfred毕业证书)纽约州立大学阿尔弗雷德分校毕业证书如何办理
taqyed
 
最新版意大利拉奎拉大学毕业证(AQUILA毕业证书)原版定制
最新版意大利拉奎拉大学毕业证(AQUILA毕业证书)原版定制
taqyea
 
465234430ujhhhb-ILM-Recruitment-Guide.pdf
465234430ujhhhb-ILM-Recruitment-Guide.pdf
CenWong
 
From reducing flood risks to conserving water
From reducing flood risks to conserving water
Ali Ata
 
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
taqyed
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaDigital-Literac...
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaDigital-Literac...
RoyCerbasPaderes
 
Untitled.pdf of mastering your offer to u
Untitled.pdf of mastering your offer to u
ArponSaha8
 
Behavioral Skills / Employability Skills
Behavioral Skills / Employability Skills
bonophool banerjee
 
PPT QC.pptxhjhjhkkkkkkkkhhuhuyyuyyyyyyyy
PPT QC.pptxhjhjhkkkkkkkkhhuhuyyuyyyyyyyy
zoobiarana76
 
Ad

automation with python and selenium

  • 1. Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Regional Training Centre, DAV Public Schools, Jharkhand Zone-C ~:Workshop for :~ Automation using Python DATE: 07th Oct – 08th Oct-2023 ~: Presented By :~ Manish Kumar DAV Public School, Koyla Nagar
  • 2. Slide ~: Agenda :~ Intro. About Selenium Selenium is an open-source, automated testing tool used to test web app across multiple browsers Why Python for automation Python is object-oriented and functional use for write test cases. Selenium Python Module Here we are knowing about different kind of module like webdriver, utils etc. Web element in Selenium A high-level instruction set for manipulating form controls. Test Case Here we are working with some example using Google form. Intro about Web driver WebDriver is a remote control interface that enables introspection and control of user agents. Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7
  • 3. Slide Slide 2 Selenium is Open Source Selenium is an open-source suite of tools and libraries that is used for browser automation. Supports Cross Browsing Almost all the browsers are supported by selenium like chrome, firefox, IE etc. Automates Web applications Selenium is very powerful tools that are provide automation in web app, website What is Selenium ? Selenium is an open-source, automated testing tool used to test web app across multiple browsers Slide 3 Slide 4 Slide 5 Slide 6 Slide 7
  • 4. Slide Slide 2 Slide 3 ~: Selenium Components :~ Slide 4 Slide 5 Slide 6 Slide 7 I . Components If you ask a lazy programmer about their favorite automation tools, there is a high probability that you will get “SELENIUM” as an answer. Selenium Grid Selenium Grid is tool which is used together with Selenium RC. It runs test on different machines against different browsers in parallel Selenium WebDriver Selenium WebDriver is a browser automation framework that accepts commands and send them to a browser Selenium IDE Selenium RC Selenium Remote Control is a server, written in java, that accepts commands for the browser via HTTP R.W . G. It is one of the simplest frameworks in the selenium suite. It allows us to record and playback the scripts.
  • 5. Slide Slide 2 Slide 3 Slide 4 Selenium with Python There are two way to run automation scripts Configure Selenium using Python Configure PyDev in Eclipse. 01 02 Slide 5 Slide 6 Slide 7 Configure Selenium using Python Download and install Python on Windows Install Selenium libraries in python Download and install Pycharm/python IDLE Create a new project and write the selenium test script Run and validate the test scripts
  • 6. Slide Slide 2 Slide 3 Slide 4 Slide 5 Element to be added while writing test script Slide 6 Slide 7 IDLE 3 DRIVER 2 PIP 1 Pip install Selenium in your prompt Download chrome driver using Google Using IDLE write from selenium import webdriver
  • 7. Slide Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Lets Start Slide 7 Step 1: from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By Step 2: driver = webdriver.Chrome() Step 3: driver.maximize_window() Step 4: driver.get(https://www.google.com/) Step 5: Now search your website and using web element perform your task