This part is a deep-dive into one of the great features of Playwright. Locators are a crucial part of Playwright Test and Playwright Library as they are an API to access the Document Object Model of a web page. More precisely, they represent a way to find an Element. You can think of it as a pointer to an HTML element, that will be resolved when we use an action or an assertion.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Locators

  • Jean-François Greffier

摘要

This part is a deep-dive into one of the great features of Playwright. Locators are a crucial part of Playwright Test and Playwright Library as they are an API to access the Document Object Model of a web page. More precisely, they represent a way to find an Element. You can think of it as a pointer to an HTML element, that will be resolved when we use an action or an assertion.