Playwright Browser Evaluate

•
594
•

Executes custom JavaScript expressions directly within browser page contexts or specific DOM elements for inspection and manipulation.

Playwright Browser Evaluate empowers Claude to execute arbitrary JavaScript functions within active web browser sessions. By targeting either the overall page context or specific DOM element references, it enables dynamic client-side inspection, runtime DOM manipulation, state verification, and advanced data extraction during automated testing, web scraping, and interactive browser workflows.

Key Features

01Target and inspect specific DOM elements via element references
02594 GitHub stars
03Perform runtime DOM manipulation and client-side data extraction
04Support asynchronous execution with background task status polling
05Execute arbitrary JavaScript functions in browser page contexts
06Integrate seamlessly with Playwright MCP automation servers

Use Cases

01Extracting dynamic client-side state and data from complex single-page applications
02Triggering custom JavaScript events and manipulating DOM nodes during automated testing
03Inspecting runtime window properties, local storage, and DOM element attributes