https://github.com/radekbednarik/playwbot
RobotFramework wrapper of @playwright-python
https://github.com/radekbednarik/playwbot
playwright playwright-python robotframework robotframework-library
Last synced: 2 months ago
JSON representation
RobotFramework wrapper of @playwright-python
- Host: GitHub
- URL: https://github.com/radekbednarik/playwbot
- Owner: radekBednarik
- Created: 2021-06-16T19:24:50.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T18:40:34.000Z (about 2 years ago)
- Last Synced: 2025-04-05T08:47:44.721Z (12 months ago)
- Topics: playwright, playwright-python, robotframework, robotframework-library
- Language: Python
- Homepage:
- Size: 210 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# playwbot
[Playwright-python](https://github.com/microsoft/playwright-python) wrapper for [RobotFramework](https://robotframework.org/).
## Installation
### From the repository
- clone the repo
- easiest way is to use [poetry](https://python-poetry.org/) and run `poetry install` and then `poetry 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 `
### From the Pypi
- if using poetry, run `poetry add playwbot` and then `poetry install`
- if using pip, run `pip install playwbot`
### Download the playwright browser binaries
This project is using [poetry](https://python-poetry.org/) 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.
## Importing module into the RF suite
- if you have the file directly accesible, just point directly to the location, like this
```
Library /some/path/to/the/library/Playwbot.py browser=
```
- if you installed it from Pypi, then import it like this
```
Library playwbot.Playwbot browser=
```
## RobotFramework-style documentation
Is available here https://radekbednarik.github.io/playwbot/