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.
XPath locators for Selenium
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
- 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 is the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.
Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.
Watch Online 15 lessons
| # | Lesson Title | Duration | Access |
|---|---|---|---|
| 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 |
Get instant access to all 14 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.
Learn more about subscriptionRelated courses
-
Updated 2y agoAutomated Software Testing with Python
By: UdemyTesting automation doesn't have to be painful. Software testing is an essential skill for any developer, and I'm here to help you truly understand all types of13h 26m -
Updated 3y agoThe Selenium Guidebook (The Complete Package Java + Python Edition)
By: Dave Haeffner (Selenium Guidebook)Master Selenium automation with The Selenium Guidebook. Overcome common challenges and enhance your testing with practical insights and examples. Suitable for3h 15m -
Updated 3y agoSelenium Webdriver Complete Course - Build A Framework
By: UdemyAre you confused and frustrated with your Selenium WebDriver testing? Do your tests break often for no apparent reason? Can you run 500 tests per day with the42h 27m