Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applitools/example-playwright-python
Applitools Example: Playwright in Python
https://github.com/applitools/example-playwright-python
applitools applitools-example applitools-eyes applitools-tutorial playwright pytest python test-automation tutorial ultrafast-grid visual-testing
Last synced: about 1 month ago
JSON representation
Applitools Example: Playwright in Python
- Host: GitHub
- URL: https://github.com/applitools/example-playwright-python
- Owner: applitools
- License: apache-2.0
- Created: 2023-03-02T16:07:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T14:14:55.000Z (6 months ago)
- Last Synced: 2024-07-09T17:54:41.470Z (6 months ago)
- Topics: applitools, applitools-example, applitools-eyes, applitools-tutorial, playwright, pytest, python, test-automation, tutorial, ultrafast-grid, visual-testing
- Language: Python
- Homepage: https://applitools.com/tutorials/quickstart/web/playwright/python
- Size: 19.5 KB
- Stars: 0
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Applitools Example: Playwright in Python
This is the example project for the [Playwright Python tutorial](https://applitools.com/tutorials/quickstart/web/playwright/python).
It shows how to start automating visual tests
with [Applitools Eyes](https://applitools.com/platform/eyes/)
and [Playwright](https://playwright.dev/) in TypeScript.It uses:
* [Python](https://www.python.org/) as the programming language
* [Playwright](https://playwright.dev/) for browser automation
* [pytest](https://docs.pytest.org/) as the core test framework
* [Chromium](https://www.chromium.org/chromium-projects/) as the local browser for testing
* [pip](https://packaging.python.org/en/latest/tutorials/installing-packages/) for dependency management
* [Applitools Eyes](https://applitools.com/platform/eyes/) for visual testingIt can also run tests with:
* [Applitools Ultrafast Grid](https://applitools.com/platform/ultrafast-grid/) for cross-browser execution
To run this example project, you'll need:
1. An [Applitools account](https://auth.applitools.com/users/register), which you can register for free
2. A recent version of [Python 3](https://www.python.org/)
3. A good Python editor like [Visual Studio Code](https://code.visualstudio.com/docs/languages/python)
or [PyCharm](https://www.jetbrains.com/pycharm/).To install dependencies and set up Playwright, run:
```
pip install -r requirements.txt
playwright install
```The main test case spec is [`test_acme_bank.py`](tests/test_acme_bank.py).
By default, the project will run tests with Ultrafast Grid.
You can change these settings in [`conftest.py`](tests/conftest.py).To execute tests, set the `APPLITOOLS_API_KEY` environment variable
to your [account's API key](https://applitools.com/tutorials/guides/getting-started/registering-an-account),
and then run:```
python3 -m pytest -s -v tests
```**For full instructions on running this project, take our
[Playwright Python tutorial](https://applitools.com/tutorials/quickstart/web/playwright/python)!**