Skip to content

Guides

One guide per capability, each with runnable examples. Start with Core concepts if you're new, or jump straight to the task you need.

Core concepts

  • Core concepts: the tab and browser objects, the async model, and what "no webdriver" means in practice.

Finding and extracting

  • Element finding: locate elements with find() (by attributes) and query() (CSS or XPath).
  • DOM traversal: move from an element to its children, siblings, and shadow roots.
  • Structured extraction: pull typed, validated data from a page with a model.

Interacting

  • Keyboard: type text and press keys, with humanized timing.
  • Mouse: click elements or drive raw coordinates, with humanized movement.
  • File operations: upload files and handle downloads.
  • Iframes: find and drive elements inside frames.
  • Screenshots and PDFs: capture the page, an element, or a PDF.

Network

Managing the browser

Reacting to events

  • Events: run callbacks when page and network events fire.
  • Retrying: retry flaky steps with the retry decorator.

What's next