https://github.com/automatedowl/selenium-python-pom-example
Example of selenium test using Page-Object-Model running on pytest framework.
https://github.com/automatedowl/selenium-python-pom-example
page-object-model pytest python selenium
Last synced: 5 months ago
JSON representation
Example of selenium test using Page-Object-Model running on pytest framework.
- Host: GitHub
- URL: https://github.com/automatedowl/selenium-python-pom-example
- Owner: AutomatedOwl
- Created: 2018-06-07T00:18:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-25T16:01:02.000Z (over 5 years ago)
- Last Synced: 2025-04-30T20:26:29.075Z (9 months ago)
- Topics: page-object-model, pytest, python, selenium
- Language: Python
- Size: 6.75 MB
- Stars: 3
- Watchers: 0
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# selenium-python-pom-example
Example of selenium test using Page-Object-Model running on pytest framework.
This example currently supports Linux distribution or Windows with Chrome browser of version 66-68 installed.
Surprisingly it was also tested successfully on Chrome 81 as well.
To run on Windows, just install the package requirements and launch the test:
```
pip install -r requirements\requirements.txt
pytest
```
To run on Linux, make the chromedriver file executable by running the following command from root project dir:
```
chmod +x driver/executable/chromedriver
```
Install the requirements:
```
# Ubuntu:
sudo apt install python-pytest python-pip
pip install -r requirements/requirements.txt
# Fedora:
sudo dnf install python-pytest python-pip
pip install -r requirements/requirements.txt
```
Then in order to run the test (with log output):
```
pytest -s
```