$
Query for a single element. Alias for page.querySelector().Deprecated: Use locator() instead.
Return value
$$
Query for all matching elements. Alias for page.querySelectorAll().Deprecated: Use locator() instead.
Return value
querySelector
Query for a single element.Deprecated: Use locator() instead.
Return value
querySelectorAll
Query for all matching elements.Deprecated: Use locator() instead.
Return value
locator
Create a locator for the given selector. Upstream docsReturn value
getByRole
Locate elements by their ARIA role, ARIA attributes, and accessible name. Upstream docsReturn value
getByText
Locate elements containing the given text. Upstream docsReturn value
getByLabel
Locate form controls by the text of their associated labels. Upstream docsReturn value
getByPlaceholder
Locate input elements by their placeholder text. Upstream docsReturn value
getByAltText
Locate elements by their alt text. Upstream docsReturn value
getByTitle
Locate elements by their title attribute. Upstream docsReturn value
getByTestId
Locate elements by their data-testid attribute. Upstream docsReturn value
frameLocator
Create a frame locator for the given selector. Upstream docsReturn value

