Skip to content

NazarYermolenko/python_playwright_boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Python Playwright boilerplate

Tech Stack

  1. Pytest
  2. Playwright

Execution

Requirements:

python 3.12.0

To run tests you need to perform the following commands:

    pip install venv
    python -m venv venv
    ./venv/Scripts/activate
    pip install requirements.txt
    playwright install
    pytest --headed --browser-channel chrome --numprocesses auto

Explanation:

--headed - run browser with UI visible while test execution (DEBUG ONLY)
--browser-channer chrome - will execute tests using Google Chrome
--numprocessses auto - will execute tests in parallel mode with count of workers which matches your CPU core counts 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published