Skip to content

sridharbandi/Selenium-Python-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Python Template with UNITTEST to getting started with

To automate Selenium Webdriver binaries management in runtime am using webdrivermanager, an excellent library by Serhii Pirohov

How to use?

Create the Page Objects of your Web application under pageobjects 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

pip3 install -r requirements.txt

How to run?

Issue the below commands in project root directory

python tests/RunTest.py

By default it runs in Chrome browser, you can specify which browser to use as well

python tests/RunTest.py --browser=firefox

Currently supported browsers are

  • chrome
  • firefox
  • edge
  • ie

Feel free to modify it to your own needs :)

Releases

No releases published

Packages

No packages published

Languages