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

https://github.com/rahulmoundekar/selenium-unit-test

Unit Test in Python with Selenium
https://github.com/rahulmoundekar/selenium-unit-test

python-3 unit-test

Last synced: 7 months ago
JSON representation

Unit Test in Python with Selenium

Awesome Lists containing this project

README

          

# UNIT-TEST-Selenium With Python :

#### Pre Requisites

- Making the project as :
```
mkdir selenium-unit-test
cd selenium-unit-test
```
- environment installation:
```
open command prompt type
pip install virtualenv
create virtualenv
>>virtualenv pyunit-with-selenium
we need to activate virtualenv for use
>>pyunit-with-selenium\scripts\activate

pip install selenium
```
While the installation of Selenium makes the functionality available to you, you need additional drivers for it to be able to interface with a chosen web browser. The download links for the drivers are available here: Chrome, Edge, Firefox and Safari. For the remainder of this tutorial, we will use the Chrome driver. Follow the link for the browser of your choice and download the driver for the compatible version.


#### Drivers

Selenium requires a driver to interface with the chosen browser.
All supported browsers will have their own drivers available. Links to some of the more popular browser drivers follow.

Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads
Edge: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
Firefox: https://github.com/mozilla/geckodriver/releases
Safari: https://webkit.org/blog/6900/webdriver-support-in-safari-10/

- In order to execute code
```
python orange_hrm.py
```
- create clone in you system just execute this file
```
1} create virtualenv and just type below command
2} pip install -r .\requirements.txt
```