Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Thursday, April 30, 2015

How to Install Python and Selenium in Windows?

Follow these instructions to setup Python and Selenium test environment on Windows:

Step 1: Install Python 3.4 using the MSI available in python.org download page.

Step 2: Start a command prompt using the cmd.exe program and run the pip command as given below to install selenium.
   C:\Python34\Scripts\pip.exe install selenium

Step 3: Now you can run your test scripts using Python. For example, if you have created a Selenium based script and saved it inside C:\my_selenium_script.py, you can run it like this:

   C:\Python34\python.exe C:\my_selenium_script.py