Browser automation
Record a sequence of browser actions and replay them as a Python script. PRO
Overview
Browser automation uses Playwright Codegen to record your browser actions and emit them as Python code. Form filling, button clicks, page transitions, and data extraction can all be automated.
Supported browsers
| Browser | Status |
|---|---|
| Google Chrome | Supported (auto-detected) |
| Microsoft Edge | Supported (auto-detected) |
Installed browsers are detected automatically.
Recording
- Click Browser automation in the sidebar
- Enter the URL to open
- Click Start recording — a browser window launches
- Perform your actions (click, type, navigate)
- Recording ends when you close the browser
- Review the generated code and choose Apply to editor or Discard
Running a browser script
Browser scripts run just like any other script. At runtime, the environment variable PYBES_BROWSER is set.
Process monitoring
While a browser script runs, Pybes monitors the child browser process. If the browser is closed, the script is cleanly shut down as well.