Playwright-python wrapper for RobotFramework.
- clone the repo
- easiest way is to use poetry and run
poetry install
and thenpoetry shell
- to be able to run the tests, install the package for the development by
python setup.py develop
- RF tests are run by standard command
robot <path>
- if using poetry, run
poetry add playwbot
and thenpoetry install
- if using pip, run
pip install playwbot
This project is using poetry as package management tool. One drawback of that is, that is does not support post-install scripts.
Therefore, once you install the library, do not forget to execute the command:
python -m playwright install
This will download binaries of all supported browsers.
- if you have the file directly accesible, just point directly to the location, like this
Library /some/path/to/the/library/Playwbot.py browser=<chromium|firefox|webkit>
- if you installed it from Pypi, then import it like this
Library playwbot.Playwbot browser=<chromium|firefox|webkit>
Is available here https://radekbednarik.github.io/playwbot/