Skip to main content

XPath locators for Selenium

1h 8m 22s
English
Paid

XPath or XML Path Language is a query language for selecting nodes from an XML document.  XPath also may be used to compute values from the content of an XML document. XPath is the most complicated method of identifying elements, but it  can find the location of ANY element on a web page, even those without class, name, or id attributes. XPath produces reliable locators if it used correctly.

In this course you will learn how to build reliable complex XPath locators, that can help you automate testing of any web application.

Requirements:

  • Test Automation with Selenium
  • Basic HTML and XML understanding

Who this course is for:
  • Test Automation engineer who want to create better and easier to maintain locators

What you'll learn:

  • Build complex XPath locators
  • Locate ANY element on the page with XPath
  • Automate testing of any element on the web page

About the Author: udemy

udemy thumbnail
By connecting students all over the world to the best instructors, Udemy is helping individuals reach their goals and pursue their dreams. Udemy is the leading global marketplace for teaching and learning, connecting millions of students to the skills they need to succeed. Udemy helps organizations of all kinds prepare for the ever-evolving future of work. Our curated collection of top-rated business and technical courses gives companies, governments, and nonprofits the power to develop in-house expertise and satisfy employees’ hunger for learning and development.

Watch Online 15 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 15 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Page elements
All Course Lessons (15)
#Lesson TitleDurationAccess
1
Page elements Demo
02:57
2
Selenium Locators
04:18
3
Locating Web Elements
07:14
4
What is XPath
00:54
5
Types of XPath
08:24
6
XPath Terminology
02:52
7
Basic XPath
06:54
8
Single and double forward slash
04:49
9
Position and index
05:02
10
Text
01:59
11
Partial values
05:24
12
XPath Operators
05:52
13
XPath Axes
06:06
14
XPath in Selenium test
04:44
15
Autro
00:53
Unlock unlimited learning

Get instant access to all 14 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription