Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a03fcc8

Browse files
author
Baiju Muthukadan
committed
over reaction ?
1 parent 0d3ab74 commit a03fcc8

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

source/installation.rst

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,35 @@ Detailed instructions for Windows users
4646

4747
1. Install Python 2.7 using the `MSI available in python.org download page <http://www.python.org/download>`_.
4848

49-
2. Download `virtualenv.py <https://raw.github.com/pypa/virtualenv/master/virtualenv.py>`_ script.
49+
2. Create a folder named ``C:\seltests`` and download `virtualenv.py <https://raw.github.com/pypa/virtualenv/master/virtualenv.py>`_ script into that folder.
5050

51-
3. Create a virtual environment (You should be in the directory where the `virtualenv.py` script is downloaded)
51+
If you have downloaded and saved the program properly, please make sure ``virtualenv.py`` file exists at this location in your system: ``C:\seltests\virtualenv.py``
52+
53+
3. Start a command prompt (using the ``cmd.exe`` program), change to the ``C:\seltests`` folder and run the ``virtualenv.py`` script as given below.
5254

5355
::
5456

57+
C:
58+
cd C:\seltests
5559
C:\Python27\python.exe virtualenv.py selenv
5660

5761

58-
This step will create a folder named `selenv` which can be used to install selenium.
62+
This step will create a folder named ``C:\seltests\selenv`` which contains a virtual Python.
5963

60-
4. Install selenium
64+
4. Use the ``pip`` command as given below to install `selenium`
6165

6266
::
6367

64-
selenv\Scripts\pip.exe install selenium
68+
C:\seltests\selenv\Scripts\pip.exe install selenium
6569

66-
Now you can run your scripts using the Python inside the virtual environment.
70+
Now installation has been completed! You can proceed to test your Selenium scripts.
6771

68-
::
72+
Now you can run your test scripts using the virtual Python. For example, if you have a created
73+
script and saved it inside ``C:\seltests\my_selenium_script.py``, you can run it like this.
74+
75+
::
6976

70-
selenv\Scripts\python.exe my_selenium_script.py
77+
C:\seltests\selenv\Scripts\python.exe C:\seltests\my_selenium_script.py
7178

7279

7380
Downloading Selenium server

0 commit comments

Comments
 (0)