Skip to content

Installation

Install webotron in your project:

Terminal window
bun add webotron

At runtime, the library needs a Chrome executable. You can point the code at a browser path through the chromePath option or the CHROME_PATH environment variable.

  • Use headless: true for unattended runs.
  • Use attach when you want to connect to an existing browser instance.
  • Use windowSize to make captures and layout-sensitive tests predictable.