page.off

View as Markdown

page.off is a browser runtime capability in the page namespace.

Availability

  • Runtime: browser
  • Kind: event
  • Category: events
  • Supported drivers: Playwright, Puppeteer, Stagehand

SDK Surface

  • SDK path: runtime.page.off
  • Async: No

HTTP Surface

  • Transport: resource route
  • Route: GET /workspaces/{id}/runtimes/{alias}/events
  • Long-running: No

Reference Semantics

  • Requires refs: page

Arguments

ArgumentTypeRequiredDescription
eventNamestringYesEvent name to remove.
listenerfunctionYesPreviously registered local SDK listener.

Result

  • Type: void
  • Description: Removes a local SDK event listener.

SDK Example

1runtime.page.off('console', (event) => {
2 console.log(event);
3});

HTTP Example

1GET /workspaces/{id}/runtimes/{alias}/events

Notes

  • This affects SDK listeners only. Runtime event history remains available through list/wait APIs.