playwright-browser-evaluate

To run JavaScript in the page context, evaluate an expression on the page or a specific element for inspection or manipulation.