Skip to content

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlayWright-Python Automation Project

This project is designed to automate SauceDemo website using the Playwright framework and Python.

Requirements

  1. Python 3.10 and above
  2. allure installed on your machine: Allure Installation guide

Setup

  1. Clone the repository
  2. Setup a virtual environment (Optional)
  3. Install the required packages:
  pip install -r requirements.txt
  1. Install playwright browsers (use elevated permissions if needed):
  playwright install

Configuration

Update the config.json file with the appropriate settings for your environment.

Running the Tests

1.To run the tests cd to tests execute the following command:

  pytest

you can add more playwright arguments to fit your needs for example:

  pytest --browser=firefox --headed

By default, tests will run on chromium based browser and headless.

experiment with different args more information can be found here

2.To generate an Allure report use the following command:

  allure serve allure-results

License

This project is licensed under the MIT License.

About

python-playwright automation testing project

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages