Puppeteer snippets
Puppeteer is a Node.js library that provides a high-level API for controlling Chrome and Chromium. axiom.ai exposes Puppeteer's Page class inside the Write javascript step, so you can use it to extend the no-code Interact steps when you need behaviour those steps don't cover. For background on what Puppeteer can do with a page, see the Page interactions reference.
Note: Puppeteer snippets only work when
Run in appis enabled on the Write javascript step, and only on desktop runs. Cloud runs can't use Puppeteer.
Snippet categories
- Interaction for scrolling, locating, and filtering elements with Puppeteer's locator API.
- Network for intercepting and blocking network requests during a run.
Tip: For event-driven workflows, the EventEmitter class is also accessible from the Write javascript step. For a worked example, see Nitay Neeman's Puppeteer event handling examples.
Need help? Contact support or ask a question in our Reddit community.