Skip to content

javiroger/selenium-python-template-pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Python Template with PYTEST to get started with

To automate Selenium Webdriver binaries management in runtime I am using webdrivermanager, an excellent library by Sergey Pirogov

How to use?

Create the Page Objects of your Web application under page_objects package and call those Page Objects in your unittests under tests package (Sample Page Objects, testcase included in this template)

Install

To install the required dependencies issue the below command in project root directory

pipenv install

How to run?

Issue the below commands in project root directory (Remember to activate pipenv)

python -m pytest

Currently supported browsers are

  • chrome
  • firefox

Feel free to modify it to your own needs :)