Browser library brings Playwright-driven web automation keywords into Robot Framework suites. Install with pip, optionally using bundled Node binaries or a separate Node.js setup.
Overview
Robot Framework Browser is a library that connects Robot Framework tests to browser automation through Playwright. Test authors call library keywords to drive Chromium, Firefox, and WebKit in automated checks.
Installation uses pip on supported Python versions. The robotframework-browser-batteries package can supply precompiled Node binaries and dependencies so Node.js is not required on the host; alternatively you install Node.js and run initialization commands to pull Node-side dependencies and Playwright browser binaries. Docker images are documented for containerized use.
Documented capabilities include chained text, CSS, and XPath selectors, in-page evaluation, waiting on HTTP requests and responses, device descriptors, direct HTTP request helpers, and saving storage state for authentication. The library supports plugins and JavaScript extensions, optional Robocop integration with transformers, and parallel runs with Pabot through process or shared-node configurations.
Some behaviors, such as automatic closing on failure, depend on Robot Framework listeners or the dynamic library API; using the library from plain Python may require mimicking those interfaces. Keyword documentation and example projects cover Robot Framework and partial Python usage patterns.
Key features
- Playwright-backed browser keywords
- Chained text, CSS, and XPath selectors
- HTTP request and response waiting
- Device descriptor emulation
- Storage state for auth reuse
- Plugin and JavaScript extension support
- Pabot parallel execution options
- Optional Robocop keyword transformers
Use cases
- Robot Framework end-to-end web tests
- Cross-browser Chromium, Firefox, WebKit runs
- CI browser automation with Docker images
- Parallel suites with Pabot
- Extending tests via library plugins
Does the same job as
RobotFramework Browser doesn't name these products itself, but its own description shows it does the same job.