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
- Host: GitHub
- URL: https://github.com/rahulmoundekar/selenium-unit-test
- Owner: rahulmoundekar
- Created: 2020-05-07T10:55:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T01:43:23.000Z (about 5 years ago)
- Last Synced: 2024-12-28T03:27:19.754Z (over 1 year ago)
- Topics: python-3, unit-test
- Language: Python
- Size: 8.01 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```