playwright.evaluate(...) and locator evaluate(...) run the supplied expression or function in the page context and may read or change page state. Use the high-level locator and action methods when ...