Actions46
- app.launch
- app.close
- app.list_running
- app.list_available
- playwright.connect
- playwright.disconnect
- playwright.goto
- playwright.go_back
- playwright.go_forward
- playwright.reload
- playwright.click
- playwright.fill
- playwright.type
- playwright.press_key
- playwright.hover
- playwright.select_option
- playwright.check
- playwright.uncheck
- playwright.scroll
- playwright.snapshot
- playwright.get_content
- playwright.get_text
- playwright.get_attribute
- playwright.get_url
- playwright.get_title
- playwright.locator_count
- playwright.get_all_text
- playwright.get_all_attributes
- playwright.evaluate
- playwright.wait_for_selector
- playwright.wait_for_load
- playwright.wait_for_timeout
- playwright.wait_for_url
- playwright.close
- screen.start_recording
- screen.stop_recording
- screen.screenshot
- screen.list_recordings
- screen.list_screenshots
- screen.download_recording
- screen.download_screenshot
- system.info
- system.stats
- system.wait
- system.os
- system.display
playwright.evaluate
AI-generatedSummary
Evaluates a JavaScript expression in the remote desktop session via Playwright, optionally scoped to a selector, with immediate or queued execution.
Inputs
- sessionId (required) — ID of the remote desktop session from a Session node.
- expression — JavaScript expression to evaluate in the page context.
- selector — CSS selector; the expression is evaluated within the matched element's context.
- mode (required) — Whether to run the action immediately or queue it for batch execution.
Output shape
depends on mode
When mode is 'run', the node returns the result of the Playwright evaluate call. When mode is 'build', it returns an object containing the session ID, the updated list of queued actions, and the queued count: { session_id: string, queued_actions: Array<{action:string, params:object}>, queued_count: number }.
Examples
Example 1: Immediately evaluate expression and get result
Set Mode to Run, provide Session ID, and an Expression such as 'document.title'.
Example 2: Queue expression for later batch execution
Set Mode to Build, provide Session ID, Expression, and optionally Selector.