To automate Selenium Webdriver binaries management in runtime am using webdrivermanager, an excellent library by Serhii Pirohov
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)
To install the required dependencies issue the below command in project root directory
pip3 install -r requirements.txt
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 :)