/Automated-Selenium

Python automation for humans 🎯

Primary LanguagePythonMIT LicenseMIT

Automated Selenium 🎯

This code uses selenium for web browser automation.

Code Requirements 🦄

The example code is in Python (version 2.7 or higher will work).

  1. import selenium
  2. import time
pip install selenium

Description 🧭

Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. Through Selenium Python API you can access all functionalities of Selenium WebDriver in an intuitive way.

Selenium Python bindings provide a convenient API to access Selenium WebDrivers like Firefox, Ie, Chrome, Remote etc. The current supported Python versions are 2.7, 3.5 and above.

Drivers 🚗

Selenium requires a driver to interface with the chosen browser. Firefox, for example, requires geckodriver, which needs to be installed before the below examples can be run. Make sure it’s in your PATH, e. g., place it in /usr/bin or /usr/local/bin.

Failure to observe this step will give you an error selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.

Other supported browsers will have their own drivers available. Links to some of the more popular browser drivers follow.

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

For more information, see

Application 🖥️

  1. I used it for applying for internships as well as other openings.
  2. I used it in college for filling out surveys to get food coupons.
  3. Used for web scraping.

Execution 🐉

To run the code, type python Automated_Form.py

python Automated_Form.py