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
1h 8m 22s
English
Paid
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
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
0:00
/ #1: Page elements
All Course Lessons (15)
| # | 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 |
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