https://github.com/sridharbandi/bcmar22-aws-python-playwright
https://github.com/sridharbandi/bcmar22-aws-python-playwright
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sridharbandi/bcmar22-aws-python-playwright
- Owner: sridharbandi
- Created: 2025-03-22T08:47:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-22T21:02:52.000Z (7 months ago)
- Last Synced: 2025-05-19T01:12:59.727Z (5 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Python Playwright Project
This project demonstrates how to use Playwright with Python for end-to-end testing.
## Pre-requisites
- [Python](https://www.python.org/downloads/)
- [Git](https://git-scm.com/downloads)
- [Visual Studio Code](https://code.visualstudio.com/download) (optional)## Setup
1. Clone the repository:
```bash
git clone https://github.com/Axone-Tech/python-playwright.git
cd python-playwright
```2. Create a virtual environment:
```bash
python -m venv venv
source venv/bin/activate
On Windows use `venv\Scripts\activate`
```3. Install dependencies:
```bash
pip install -r requirements.txt
```4. Install Playwright browsers:
```bash
playwright install
```## Usage
To run the tests, use the following command:
```bash
pytest
```
To run the tests on headed mode, use the following command:
```bash
pytest --headed
```## Reports
To generate the report, run the following command:
```bash
pytest --html=reports/index.html
```