Locators

View at publisher
Authors: Jean-François Greffier
Cited by: 0

Abstract

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.

Fields of Study & Subjects

Mathematics Computing and Information Processing Web Application Security Vulnerabilities Digital Humanities and Scholarship

Publication details

Journal / source
Apress eBooks
Pages
59–80
Publication date
1 January 2026
Language
EN
Document type
Book chapter