Showing posts with label install. Show all posts
Showing posts with label install. 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

Wednesday, April 29, 2015

How to Install Python and Selenium in Linux (Ubuntu)?


To install Selenium means to set up a project in a development so you can write a program using Selenium.

Supported Python Versions:
  • Python 2.6, 2.7
  • Python 3.2, 3.3
Step 1: Install pip, if not already installed:

pip is a package management system used to install and manage software packages written in Python. You can install it by typing:
sudo apt-get install python-pip
Step 2: Install or upgrade the Python bindings:

pip install -U selenium

Alternately, you can download the source distribution from PyPI (e.g. selenium-2.45.tar.gz), unarchive it, and run:

python setup.py install