context.off

View as Markdown

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

Availability

  • Runtime: browser
  • Kind: event
  • Category: events
  • Supported drivers: Playwright

SDK Surface

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

HTTP Surface

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

Reference Semantics

  • Requires refs: context

Arguments

ArgumentTypeRequiredDescription
eventNamestringYesContext event name to remove.
listenerfunctionYesPreviously registered local SDK listener.

Result

  • Type: void
  • Description: Removes a local browser-context event listener.

SDK Example

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

HTTP Example

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