Clicks on an element matching the given CSS/XPath selector. Supports fixtures for reusable selectors.
The Playwright page object
The selector key (can be a fixture key or raw CSS/XPath selector)
Optional
Optional table data for click options
When I pw click on element ".my-element" When I pw click on element "login.submitButton" Copy
When I pw click on element ".my-element" When I pw click on element "login.submitButton"
Clicks on an element matching the given CSS/XPath selector. Supports fixtures for reusable selectors.