|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/rspec-for-testers/
课程评论:没有评论
**课程名称:** 元素定位:CSS 与 XPath 60 分钟速成课 **课程概述:** 本课程旨在帮助学习者掌握使用元素定位器(如 CSS 和 XPath)在网页上唯一地定位元素。CSS 和 XPath 是自动化测试工具(如 Selenium, Appium, Katalon Studio, Watir 等)中最常用和最实用的元素定位方法。 **课程内容涵盖:** * **CSS 定位器:** 从基础到高级的深入理解,包括进阶技巧。 * **XPath 定位器:** * 基于属性的定位。 * 基于内部文本的定位。 * 利用轴(Axis)技术的定位。 * 进阶的基于属性、内部文本和轴技术的定位。 * **元素定位最佳实践:** 学习如何高效、可靠地编写元素定位器。 **关于 XPath:** XPath(XML Path Language)是一种用于查询和转换 XML 文档的表达式语言。它由万维网联盟(W3C)定义,能够从 XML 文档的内容中计算值。XPath 用于唯一标识或寻址 XML 文档的各个部分,可以搜索 XML 文档并从中提取信息,例如元素或属性(在 XML 中称为节点)。XPath 源于 XSLT 和 XPointer 之间共享通用语法的努力,它允许在 XML 文档结构内搜索和检索信息。XPath 本身并非 XML 语法,而是利用了与 XML 文档逻辑结构相关的语法。 **目标受众:** 自动化测试工程师、Web 开发人员以及任何需要精通网页元素定位的学习者。
With the help of Element Locators, we can locate element uniquely on the page. CSS and Xpath are most command and most usable element locators used in different automation tools like Selenium, Appium, Katalon Studio, Watir and many more.In this course, we are going to cover- Basic to advance understanding of CSS locatos- Xpath Locators using Attributes- Xpath Locators using Inner text- Xpath Locators using Axis techniques- Best practices while writing element locators- Advance understanding of CSS locatos- Advance Xpath Locators using Attributes- Advance Xpath Locators using Inner text- Advance Xpath Locators using Axis techniques- Best practices while writing element locatorsXPath is an expression language designed to support the query or transformation of XML documents. It was defined by the World Wide Web Consortium and can be used to compute values from the content of an XML document.The XML Path Language (XPath) is used to uniquely identify or address parts of an XML document. An XPath expression can be used to search through an XML document, and extract information from any part of the document, such as an element or attribute (referred to as a node in XML) in itXPath grew out of efforts to share a common syntax between XSL Transformations (XSLT) and XPointer. It allows for the search and retrieval of information within an XML document structure. XPath is not an XML syntax: rather, it uses a syntax that relates to the logical structure of an XML document.