Skip to content

Example of selenium test using Page-Object-Model running on pytest framework.

Notifications You must be signed in to change notification settings

r00t-ex0rc1s7/selenium-python-pom-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

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 apt install python-pytest python-pip
pip install -r requirements/requirements.txt

Then in order to run the test (with log output):

pytest -s

About

Example of selenium test using Page-Object-Model running on pytest framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%