Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harmin-parra/playwright-python-examples
Cypress sample tests rewritten into Playwright (python)
https://github.com/harmin-parra/playwright-python-examples
playwright playwright-python webtest webtesting
Last synced: about 1 month ago
JSON representation
Cypress sample tests rewritten into Playwright (python)
- Host: GitHub
- URL: https://github.com/harmin-parra/playwright-python-examples
- Owner: harmin-parra
- License: other
- Created: 2023-11-03T23:27:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T16:58:20.000Z (8 months ago)
- Last Synced: 2024-05-29T08:03:34.059Z (8 months ago)
- Topics: playwright, playwright-python, webtest, webtesting
- Language: Python
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# playwright-python-examples
These are the Cypress (https://example.cypress.io/) sample tests, but they have been rewritten into [Playwright](https://playwright.dev/python/docs/intro) (Python).
Be aware that some Cypress commands don't have an equivalent in Playwright, thus some workarounds are proposed whenever possible.
If you find a better solution or do you have an alternative solution to one of the tests, please share it with me by raising an [issue](https://github.com/harmin-parra/playwright-python-examples/issues).
---
### To execute the tests:1. Install [Playwright](https://playwright.dev/python/docs/intro) for python.
2. Download the project
``git checkout [email protected]:harmin-parra/playwright-python-examples.git``
or download and unzip the [zip file](https://github.com/harmin-parra/playwright-python-examples/archive/refs/heads/main.zip) of the project
3. Enter the folder of the project
``cd playwright-python-examples``
4. Execute the test
* with headless browser
``pytest tests``
* with headed browser
``pytest --headed tests``