Skip to content

API Overview

API docs are split by surface. Use the sidebar or search to jump to:

  • Browser: launch options, contexts, pages, close.
  • Page: navigation, queries, clicks, typing, uploads, screenshots, selectors.
  • Frame: frame-scoped equivalents of Page actions.
  • Locator: reusable handles with click/type/query helpers.
  • Assertions: expect(page).element(...) matchers.

Selector routing: CSS is assumed unless the selector starts with /, ./, .//, .., or ( followed by / or ., which is treated as XPath. Shadow DOM uses CSS with >>>.