Skip to content

applitools/example-playwright-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Applitools Example: Playwright in Python

This is the example project for the Playwright Python tutorial. It shows how to start automating visual tests with Applitools Eyes and Playwright in TypeScript.

It uses:

It can also run tests with:

To run this example project, you'll need:

  1. An Applitools account, which you can register for free
  2. A recent version of Python 3
  3. A good Python editor like Visual Studio Code or 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. By default, the project will run tests with Ultrafast Grid. You can change these settings in conftest.py.

To execute tests, set the APPLITOOLS_API_KEY environment variable to your account's API key, and then run:

python3 -m pytest -s -v tests

For full instructions on running this project, take our Playwright Python tutorial!