Xpath Locators For Selenium

Build complex XPath locators for Selenium automation that will work on any web element

Last updated 2022-01-10 | 4.6

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

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

* Requirements

* Test Automation with Selenium
* Basic HTML and XML understanding

Description

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 a 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. That's why it's so popular among test automation engineers as the main locator strategy for Selenium tests.

In this course you will learn how to build reliable complex XPath locators, that can help you automate testing of any web application. You will learn a lot of tips and tricks. We will review some tools that can help beginners and some Google Chrome tricks for developers.

Words "very good", "excellent course", "very helpful" can be seen in many 4 star reviews.

"XPath locators for Selenium" have been BESTSELLER almost since the course publication date. Students love it and enjoy learning from it.

The course was updated in October 2020 with more info, more tips and tricks, better audio quality, and more examples. And in addition, I added a free downloadable XPath cheat sheet, which you can find in the attached resources to the course.

Who this course is for:

  • Test Automation engineer who want to create better and easier to maintain locators

Course content

4 sections • 30 lectures

What we need to know Preview 02:43

Helpful tips before we start Preview 03:33

Page elements Preview 03:02

Selenium Locators Preview 05:01

Locating Web Elements Preview 08:58

Section 1 Quiz

What is XPath? Preview 01:40

XPath Terminology Preview 03:17

Types of XPath Preview 09:01

Section 2 Quiz 1

Basic XPath syntax Preview 08:25

/ vs // vs ./ vs .// Preview 08:16

Use of .// Preview 10:12

Position and index Preview 09:19

Section 2 Quiz 2

XPath Functions: Text Preview 02:18

XPath Functions: Contains Preview 05:35

XPath Functions: Starts-With Preview 02:22

XPath Functions: not Preview 04:21

Section 2 Quiz 3

XPath Operators Preview 08:42

XPath wildcards Preview 02:09

XPath Axes Preview 14:11

Finding elements relative to other elements Preview 03:52

Selecting Several Paths Preview 03:13

SVG elements Preview 06:23

Stopping page load Preview 03:54

Section 3 Quiz

XPath versus CSS Preview 04:34

Bonus Lecture: Discount coupons Preview 03:22