Skip to content

sankethkamathk/Playwright-Python-Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright Python Example

Pre merge test

Articles written about this project

Project Setup

  • Install scoop
  • Install allure commandline by running the following command:
scoop install allure
  • Clone the project
  • Navigate to the project directory
  • Install virtualenv:
py -m pip install --user virtualenv
  • Create a virtual environment:
py -m venv env
  • Activate the virtual environment:
.\env\Scripts\activate
  • Install project dependencies:
poetry install

Running Tests

pytest --browser <firefox/chrome_headless>

When no browser was selected then chrome will be used.

  • Run tests:
pytest

Viewing Test Results

  • View allure results locally:
allure serve allure-results

View Help And Custom CLI Options

pytest --help

Sort imports

isort .

format code

black .

About

Playwright Python example project with pytest and Allure report

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%