Robot Framework Browser library (robotframework-browser) is a web testing library for Robot Framework that uses Playwright internally for browser automation. It aims for speed, reliability, and visibility in web testing. The library has a rapid release cadence, frequently publishing hotfixes and minor versions, often on a monthly or bi-weekly basis.
pip install robotframework-browser
rfbrowser initVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates a basic Robot Framework test case using the Browser library. It opens a new browser page to playwright.dev and asserts that the `h1` element contains the text 'Playwright'.
Upgrade your Python environment to 3.10 or newer. Refer to the library's official documentation for current Python requirements.
Avoid importing internal utility modules. If specific boolean conversion logic is needed, implement it directly in your test suite or custom library based on Robot Framework's documented APIs.
Always execute `rfbrowser init` after installation or upgrade. If Node.js is not present, consider `pip install robotframework-browser[bb]` and then `rfbrowser install`.
Ensure your Node.js and Python versions align with the library's requirements. If issues persist, try explicitly installing a known working `grpcio` version (e.g., `pip install grpcio==1.78.0`) or using the `robotframework-browser-batteries` variant to bypass Node.js entirely.
Familiarize yourself with the Browser library's concepts of Browser, Context, and Page. Review the official documentation and examples for recommended patterns, especially regarding session management and element interaction.
If you intend to interact with multiple elements, use keywords explicitly designed for that (e.g., `Get Elements`) or disable strict mode where appropriate. Be explicit with your selectors to target a single element.
If video playback is critical, try running tests with Firefox or Webkit, or specifically with a full Google Chrome or Microsoft Edge browser (instead of the default Chromium provided by Playwright).