robocorp-browser
The robocorp-browser package is a light wrapper for the Playwright -project, with quality-of-life improvements, such as automatic lifecycle management for Playwright objects (meant to be used with robocorp-tasks).
Usage

👉 Check that you have added the dependency in your configuration; this library is not part of the robocorp bundle.
- conda.yaml for automation Task Packages
- package.yaml for automation Action Packages
- requirements.txt, pyproject.toml, setup.py|cfg etc. for the rest
from robocorp import browser, vault
from robocorp.tasks import task
@task
def automate_browser():
"""Start a browser to login in the surfed page."""
browser.configure(
screenshot="only-on-failure",
headless=True,
slowmo=100,
)
browser.goto("https://example.com>")
_login()
def _login():
page = browser.page()
account = vault.get_secret("default-account")
page.fill('//input[@ng-reflect-name="password"]', account["password"])
page.click("input:text('Submit')")
🚀 Get started with our template now!
Guides
API Reference
Explore our API for extensive documentation.
Changelog
A list of releases and corresponding changes can be found in the changelog.