Udemyintermediatezh

页面元素定位(CSS & XPath)

Learn Selenium for web automation! Master essential techniques to automate browser tasks and streamline testing. Boost your skills with this practical course.

4.6(3)
21students
2h 18m
Certificate
Sunny Gao
Sunny Gao高级测试专家;测试总监

Course Content

页面元素定位(CSS & XPath) is an intermediate-level Udemy course taught by Sunny Gao. It runs 2h 18m, is taught in Chinese, and includes a certificate of completion. Learners rate it 4.6 out of 5 from 3 reviews, with 21 students enrolled. It is a paid course, last updated September 2025.

Learn to master element location with XPath and CSS Selectors for robust web automation! This course dives deep into finding elements across different browsers, equipping you with advanced targeting techniques essential for successful Selenium automation testing.

Here's what you'll discover:

  • Element Location in Browsers: Explore effective methods for pinpointing elements using browser developer tools. We'll cover techniques in both Firefox Developer Tools and Chrome Developer Tools.
  • XPath Mastery: Understand the difference between absolute and relative paths in XPath. Learn to construct powerful and efficient XPath expressions using:
    • Text to locate elements based on their text content.
    • Contains to find elements containing specific text.
    • StartWith to target elements beginning with a particular string.
    • How to navigate to parent and sibling nodes.
  • CSS Selector Proficiency: Gain expertise in using CSS Selectors for precise element targeting, including:
    • Locating elements by ID.
    • Targeting elements with multiple CSS Classes.
    • Utilizing CSS Wildcards for flexible selection.
    • Locating child elements with CSS.
  • Practical Tools: Get hands-on experience with tools like TryXpath (a Firefox add-on) to easily test and refine your XPath queries. Discover techniques for obtaining default XPath or CSS Selectors directly from your browser.

This course is a must-have for anyone serious about Selenium web automation. Proper element location is the foundation of reliable and scalable automated tests. By the end, you'll be confident in locating any element on a webpage, making you well-prepared for building robust Selenium page object models and automating complex web interactions.

$ whoami — the devs behind tutorialsearch.io

Need a web app built? Hire the team behind TutorialSearch.io

We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.

使用 HTML、CSS 開發一個網站

by 卡斯伯 六角學院

4.8(3,737)
17h 16m
beginner
4.7(944)
10h 34m
beginner
4.6(892)
6h 22m
beginner
4.6(278)
31m
all