You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selenium2Library is available in the Python Package Index (PyPI_). To install,
22
-
you need to have `pip`_ installed. Then run::
20
+
Selenium2Library is available in the Python Package Index (PyPI_). It is
21
+
recommended that you use `pip`_ to install. Using pip will ensure that
22
+
both Selenium2Library **and** it's dependiences are installed.
23
+
To install using pip, run::
23
24
24
25
pip install robotframework-selenium2library
25
26
26
27
Or alternately, if you only have `easy_install`_,::
27
28
28
29
easy_install robotframework-selenium2library
29
30
31
+
If you install Selenium2Library under Windows **and** you use easy_install,
32
+
you will need to install Selenium2Library's dependencies seperately.
33
+
To install the dependencies, run::
34
+
35
+
easy_install robotframework
36
+
easy_install selenium
37
+
easy_install decorator
38
+
easy_install docutils
39
+
40
+
Once installation is completed, you should verify proper installation of
41
+
Selenium2Library and it's dependencies. See `Verifying Installation` section
42
+
below.
30
43
31
44
Installing from source
32
45
----------------------
@@ -52,11 +65,40 @@ Using Windows installer
52
65
-----------------------
53
66
54
67
Currently, Windows installer is the only available binary installer. Just
55
-
double-click the installer and follow the instructions.
68
+
double-click the installer and follow the instructions. The installer is missing
69
+
decorator module. It must be installed either via pip or easy install, or from
70
+
http://pypi.python.org/pypi/decorator/
56
71
57
72
Selenium2Library can be uninstalled using the Programs and Features utility from
58
73
Control Panel (Add/Remove Programs on older versions of Windows).
59
74
75
+
Verifying Installation
76
+
----------------------
77
+
78
+
Once you have installed Selenium2Library it is a good idea to verify the installation. To verify installation start python::
79
+
80
+
C:\> python
81
+
82
+
and then at the Python prompt type::
83
+
84
+
>> import Selenium2Library
85
+
>>
86
+
87
+
If the python command line interpretor returns with another prompt ('>>' as shown above) then your installation was successful.
88
+
89
+
Troubleshooting Installation
90
+
----------------------------
91
+
92
+
The most common issue with installing Selenium2Library is missing dependencies. An error like::
93
+
94
+
ImportError: No module named robot.variables
95
+
96
+
indicates that you are missing the Robot Framework package. To correct this problem try typing at the prompt::
97
+
98
+
easy_install robotframework
99
+
100
+
Similarly if you receive "No module named ..." error message then you have another missing dependency. To correct, use easy_install to install the missing package.
0 commit comments