https://github.com/oleksandrbaior/web_university_e2e_playwright_python
Common webelements on websites. e2e testing using python
https://github.com/oleksandrbaior/web_university_e2e_playwright_python
playwright-python python
Last synced: about 1 month ago
JSON representation
Common webelements on websites. e2e testing using python
- Host: GitHub
- URL: https://github.com/oleksandrbaior/web_university_e2e_playwright_python
- Owner: OleksandrBaior
- License: mit
- Created: 2023-09-21T17:39:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T20:46:34.000Z (about 2 years ago)
- Last Synced: 2024-12-27T05:08:11.702Z (12 months ago)
- Topics: playwright-python, python
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web_university_e2e_playwright_python
Common webelements on websites. e2e testing using python
1. Install Python
```
https://www.python.org/downloads/
```
2. Install python package installer:
```
py -m ensurepip --upgrade (Windows)
```
or:
```
python -m ensurepip --upgrade (MacOS/Linux)
```
3. Install package manager:
```
pip install pipenv
```
4. Next let’s create an isolated virtual environment (to hold our project’s libraries
isolated from global environment):
```
pipenv shell
```
5. First we need pytest-playwright:
```
pipenv install pytest-playwrigh
````
6. Than we need to install browsers (or a specific browser to run our tests against)
playwright install will install all the browsers used by playwright
As of right now we’re going to use only Chrome browser run:
```
playwright install chromium
```
7. Running test:
```
pytest
```
8. Runing specific test with mark: (@pytest.mark.*)
```
pytest -m *
```