I am very new to Robot Framework
I am using RIDE 1.5.2.1 running on Python 2.7.13.
After I installed Python on my machine, I executed the following, to install the Selenium2Library:
python -m pip install robotframework-selenium2library
and that seems to have installed it to the path:
C:\Python27\Lib\site-packages
Now, I would like to add selenium2library to my robotframework project within RIDE, but I can't find the file.
Below is my Test Suite:
*** Settings ***
Library selenium2library
*** Test Cases ***
User can load the landing page
[Documentation] User opens the landing page
Open Browser http://localhost:8080/ ie
Close Browser
But it fails with this error:
[ ERROR ] Error in file 'C:\Python27\Scripts\Customer\Landing_Page\Landing_Page.txt': Importing test library 'selenium2library' failed: ImportError: No module named selenium2library
Traceback (most recent call last):
Traceback (most recent call last):
None
PYTHONPATH:
C:\Windows\SYSTEM32\python27.zip
C:\Python27\DLLs
C:\Python27\lib
C:\Python27\lib\plat-win
C:\Python27\lib\lib-tk
C:\Python27
C:\Python27\lib\site-packages
C:\Python27\lib\site-packages\robotframework-3.0-py2.7.egg
C:\Python27\lib\site-packages\decorator-4.0.10-py2.7.egg
C:\Python27\lib\site-packages\robotframework_selenium2library-1.8.0-py2.7.egg
C:\Python27\lib\site-packages\selenium-3.0.2-py2.7.egg
C:\Python27\lib\site-packages\pygments-2.1.3-py2.7.egg
C:\Python27\lib\site-packages\wx-2.8-msw-unicode
Customer | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
It seems that, it does not find the Selenium2library`, but when I try to install it again it says:
Requirement already satisfied: robotframework-selenium2library in c:\pytho
b\site-packages
Requirement already satisfied: decorator>=3.3.2 in c:\python27\lib\site-pa
(from robotframework-selenium2library)
Requirement already satisfied: selenium>=2.32.0 in c:\python27\lib\site-pa
(from robotframework-selenium2library)
Requirement already satisfied: robotframework>=2.6.0 in c:\python27\lib\si
kages\robotframework-3.0-py2.7.egg (from robotframework-selenium2library)
I am confused, it seems that I already have selenium2library, but RIDE cannot find it?

