Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.19 KB

README.md

File metadata and controls

20 lines (16 loc) · 1.19 KB

Selenium_Python

This code repository will show usage of selenium and python for automation testing purpose.

Installations

  1. Install Python 3.6 or above. It is suggested to use Anaconda distributions for bundled package of Python.
  2. Use 'pip install selenium' to install selenium, ensure it lies in project path itself. (In case you have not used Ananconda distribution, first install pip using 'get-pip.py')
  3. Install webdriver downloader using 'pip install webdriverdownloader'.
  4. Download browser driver respective to your browser. Ensure to place the driver exe in project path itself. (You can use webdriverdownloader to download different browser drivers, e.g. webdriverdownloader chrome:2.38 firefox opera:v.2.35)

How to use

  1. Clone the project to your local machine.
  2. Run through the example codes.

open_url_script

This code shows how to use Webdriver to launch a specific url on Firefox using python and selenium bindings. It further shows element search and interacting with elements on browser.

unittest_sample

This code shows how to use unittest framework for writing python test scripts. Note: unittest.main() needs argument only when running with IPython or Juypter notebook.