SlideShare a Scribd company logo
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Introduction to Selenium
Why Python for Automation Testing
Topics For Today’s Discussion
SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Topics for Today’s Session
Selenium Python Binding
PyCharm for Python
Importing Selenium Web driver
Demo – Automating Hot star Website
Introduction to Selenium
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
What is Selenium?
Selenium is an open source tool which is used for automating the tests carried out on web browsers
(Web applications are tested using any web browser).
Selenium is Open
Source
Supports Cross
Browsing
Automates web
applications
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Why Selenium IDE?
Test Scripts OS Platform Browsers
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Selenium Market Trends
Why python for automation
testing
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Why Python for Automation Testing?
Large community
a=3
b=5
Sum=a+b
Open Source High-level Interpreted
Splinter
Tools Framework
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Market Trends of Python
Selenium Python BINDING
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Selenium Python Binding
Selenium Python bindings provides a simple API to write functional tests using Selenium WebDriver
Web driver
Server
Run
Tests
Importing Selenium
Webdriver
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Importing Selenium Web driver
from selenium import webdriver
from selenium.webdriver.common.keys
import keys
from selenium.import.*
Locating elements in
selenium
32 41
ID
Name
Link Text Partial link text
CSS Selector
Types of Locators
www.edureka.co/java-j2ee-soa-trainingJAVA CERTIFICATION TRAINING
5 6
Xpath
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
The Id strategy looks for an element in the page having an id attribute
corresponding to the specified pattern. <label id="my_id" /> will
be matched by a locator like id=my_id or just my_id
Target Format: id=id of the element
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
Locating elements by name are very similar to locating by ID, except
that we use the "name=" prefix instead.
Target Format: name=name of the element
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
This type of locator applies only to hyperlink texts. We access the link by
prefixing our target with "link=" and then followed by the hyperlink
text.
Target Format: link=link_text
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
Locating by CSS Selector using an HTML tag and a class name is similar
to using a tag and ID, but in this case, a dot (.) is used instead of a hash
sign.
Target Format:css=tag.class[attribute=value]
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
In some situations, we may need to find links by a portion of the text in a
Link Text element. it contains. In such situations, we use Partial Link Text
to locate elements.
Syntax:
find_element_by_partialLinkText("partialLinkText"));
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
XPath is designed to allow the navigation of XML documents, with the
purpose of selecting individual elements, attributes, or some other part
of an XML document for specific processing.
Xpath=//tagname[@Attribute=‘Value’]
PyCharm for python
SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
PyCharm for Python
DEMOYouTube Video Link in the Description
Test Automation Using Python | Edureka

More Related Content

PPTX
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
PPTX
An overview of selenium webdriver
PPTX
Basic of python for data analysis
PDF
Python Basics
PPTX
Python
PDF
Tác động của chất lượng dịch vụ xe bus tới sự hài lòng khách hàng tại Hà Nội
PPTX
Automation - web testing with selenium
PDF
Gt khong gian_metric Nguyen Hoang
Selenium WebDriver Tutorial | Selenium WebDriver Tutorial For Beginner | Sele...
An overview of selenium webdriver
Basic of python for data analysis
Python Basics
Python
Tác động của chất lượng dịch vụ xe bus tới sự hài lòng khách hàng tại Hà Nội
Automation - web testing with selenium
Gt khong gian_metric Nguyen Hoang

What's hot (20)

PPTX
Python selenium
PDF
Automation Testing using Selenium
PPTX
Robot framework
PPTX
Python in Test automation
PDF
Test Automation
PDF
Web automation using selenium.ppt
PDF
SELENIUM PPT.pdf
PPTX
Automation Testing by Selenium Web Driver
PPT
Selenium Presentation at Engineering Colleges
PPTX
Introduction to Selenium Web Driver
PPTX
Selenium WebDriver
PPTX
Selenium WebDriver training
PDF
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
PPTX
Introduction to selenium
PDF
Selenium - Introduction
DOCX
Selenium interview questions
PPTX
Data driven Automation Framework with Selenium
PDF
Page Object Model and Implementation in Selenium
PDF
Automation Testing using Selenium Webdriver
PPT
Selenium Concepts
Python selenium
Automation Testing using Selenium
Robot framework
Python in Test automation
Test Automation
Web automation using selenium.ppt
SELENIUM PPT.pdf
Automation Testing by Selenium Web Driver
Selenium Presentation at Engineering Colleges
Introduction to Selenium Web Driver
Selenium WebDriver
Selenium WebDriver training
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
Introduction to selenium
Selenium - Introduction
Selenium interview questions
Data driven Automation Framework with Selenium
Page Object Model and Implementation in Selenium
Automation Testing using Selenium Webdriver
Selenium Concepts
Ad

Similar to Test Automation Using Python | Edureka (20)

PDF
Selenium course training institute ameerpet hyderabad – Best software trainin...
PDF
Selenium course training institute ameerpet hyderabad
PDF
New Features of Chropath for XPath and CSS Selectors | Edureka
PPTX
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
PDF
Selenium Framework using Java | Selenium Tutorial | Selenium Training Online ...
PPTX
Advanced Drupal SEO - Beginner to Expert in 60 Minutes
PPTX
Selenium training
PPTX
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
PDF
Progressive EPiServer Development
PPTX
Selenium ui paradigm - DDD North 2
PDF
SEO & WordPress for beginners
PDF
PHP Courses in Chandigarh
PDF
How to tdd your mvp
PPT
Diagnosing Technical Issues With Search Engine Optimization
PDF
Selenium Design Patterns And Best Practices Dima Kovalenko
PDF
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
PDF
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
PPT
Test Automation Framework Designs
PPT
Selenium-Webdriver With PHPUnit Automation test for Joomla CMS!
PDF
Matraca industrial evaluation (Cha-Q tool demo event Dec 2016)
Selenium course training institute ameerpet hyderabad – Best software trainin...
Selenium course training institute ameerpet hyderabad
New Features of Chropath for XPath and CSS Selectors | Edureka
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Selenium Framework using Java | Selenium Tutorial | Selenium Training Online ...
Advanced Drupal SEO - Beginner to Expert in 60 Minutes
Selenium training
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Progressive EPiServer Development
Selenium ui paradigm - DDD North 2
SEO & WordPress for beginners
PHP Courses in Chandigarh
How to tdd your mvp
Diagnosing Technical Issues With Search Engine Optimization
Selenium Design Patterns And Best Practices Dima Kovalenko
Data Driven Framework In Selenium Webdriver | Data Driven Testing | Selenium ...
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
Test Automation Framework Designs
Selenium-Webdriver With PHPUnit Automation test for Joomla CMS!
Matraca industrial evaluation (Cha-Q tool demo event Dec 2016)
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Big Data Technologies - Introduction.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
KodekX | Application Modernization Development
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation theory and applications.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Spectral efficient network and resource selection model in 5G networks
Agricultural_Statistics_at_a_Glance_2022_0.pdf
sap open course for s4hana steps from ECC to s4
Big Data Technologies - Introduction.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Advanced methodologies resolving dimensionality complications for autism neur...
KodekX | Application Modernization Development
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation theory and applications.pdf
Spectroscopy.pptx food analysis technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf

Test Automation Using Python | Edureka

  • 1. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses
  • 2. Introduction to Selenium Why Python for Automation Testing Topics For Today’s Discussion SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver Topics for Today’s Session Selenium Python Binding PyCharm for Python Importing Selenium Web driver Demo – Automating Hot star Website
  • 4. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses What is Selenium? Selenium is an open source tool which is used for automating the tests carried out on web browsers (Web applications are tested using any web browser). Selenium is Open Source Supports Cross Browsing Automates web applications
  • 5. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Why Selenium IDE? Test Scripts OS Platform Browsers
  • 6. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Selenium Market Trends
  • 7. Why python for automation testing
  • 8. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Why Python for Automation Testing? Large community a=3 b=5 Sum=a+b Open Source High-level Interpreted Splinter Tools Framework
  • 9. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Market Trends of Python
  • 11. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Selenium Python Binding Selenium Python bindings provides a simple API to write functional tests using Selenium WebDriver Web driver Server Run Tests
  • 13. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Importing Selenium Web driver from selenium import webdriver from selenium.webdriver.common.keys import keys from selenium.import.*
  • 15. 32 41 ID Name Link Text Partial link text CSS Selector Types of Locators www.edureka.co/java-j2ee-soa-trainingJAVA CERTIFICATION TRAINING 5 6 Xpath
  • 16. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Types of Locators CSS Selector Link Text Partial link text ID Name Xpath The Id strategy looks for an element in the page having an id attribute corresponding to the specified pattern. <label id="my_id" /> will be matched by a locator like id=my_id or just my_id Target Format: id=id of the element
  • 17. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Types of Locators CSS Selector Link Text Partial link text ID Name Xpath Locating elements by name are very similar to locating by ID, except that we use the "name=" prefix instead. Target Format: name=name of the element
  • 18. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Types of Locators CSS Selector Link Text Partial link text ID Name Xpath This type of locator applies only to hyperlink texts. We access the link by prefixing our target with "link=" and then followed by the hyperlink text. Target Format: link=link_text
  • 19. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Types of Locators CSS Selector Link Text Partial link text ID Name Xpath Locating by CSS Selector using an HTML tag and a class name is similar to using a tag and ID, but in this case, a dot (.) is used instead of a hash sign. Target Format:css=tag.class[attribute=value]
  • 20. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Types of Locators CSS Selector Link Text Partial link text ID Name Xpath In some situations, we may need to find links by a portion of the text in a Link Text element. it contains. In such situations, we use Partial Link Text to locate elements. Syntax: find_element_by_partialLinkText("partialLinkText"));
  • 21. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses Types of Locators CSS Selector Link Text Partial link text ID Name Xpath XPath is designed to allow the navigation of XML documents, with the purpose of selecting individual elements, attributes, or some other part of an XML document for specific processing. Xpath=//tagname[@Attribute=‘Value’]
  • 23. SOFTWARE TESTING COURSES www.edureka.co/software-testing-certification-courses PyCharm for Python
  • 24. DEMOYouTube Video Link in the Description