context.waitForEvent

View as Markdown

context.waitForEvent 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.waitForEvent
  • Async: Yes

HTTP Surface

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

Reference Semantics

  • Requires refs: context

Arguments

ArgumentTypeRequiredDescription
eventNamestringYesContext event name to wait for.
optionsobjectNoOptional event wait settings.

Result

  • Type: unknown
  • Description: Event payload mapped into runtime event metadata.

SDK Example

1await runtime.browserContext.waitForEvent('console');

HTTP Example

1POST /workspaces/{id}/runtimes/{alias}/events/wait

Notes

  • This is an SDK convenience layer over runtime event list/wait APIs, not a standalone HTTP execute capability.