'Robot Framework Browser library not working with Debian Docker Image
So I have a Debian Docker Image. And I am using the below commands:
For Installation(v 12.3.0)
pip install robotframework-browser
For Initializing
rfbrowser init
Now When I am running my tests in the docker container, I am getting the error as
[ WARN ] Keyword 'Take Screenshot fail-screenshot-{index}' could not be run on failure:
Error: Tried to take screenshot, but no page was open.
TC-001 | FAIL |
Error: browserType.launch:
╔════════════════════════════════════════════════════════════╗
║ Host system is missing a few dependencies to run browsers. ║
║ Please install them with the following command: ║
║ ║
║ npx playwright install-deps ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝
Now when I run the command npx playwright install-deps then I m getting the error as:
Failed to install browser dependencies
Error: Unsupported Linux distribution, only Ubuntu is supported!
I also tried installing Playwright with pip install playwright and then running playwright install inside the docker container, but still getting the above error.
Would be helpful if anyone could share their experiences working with Debian Images and RF-browser library in a docker container.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
