An open API service indexing awesome lists of open source software.

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.

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
```