selenium2library - import file not found

796 views
Skip to first unread message

James Gargette

unread,
Dec 13, 2017, 10:24:23 AM12/13/17
to robotframework-users
my issue, strictly speaking is not with the robot framework but I'm hoping somebody can help point me in the right direction.

I have one machine that is the only machine which cannot find the import library selenium2library. 

my test file includes:

***Settings***

Library  Selenium2Library

the text is highlighted and the following message is displayed

Import file not found - this inspection triggers when the library of resource is not defined.

I'm currently using the following:

Windows 10 (build 15063.276)
robotframework 3.0.2
python 2.7.14
pip 9.0.1
robotframework-selenium2library 1.8.0
selenium 3.4.3
intellibot 0.10.143.381
Robot Framework Support 0.13

this test suite runs as expected on this machine, I simply cannot access the keyword library through my IDE.

the library is found on all other machines that use the same configuration, for which the test also runs as expected.

Can anybody help?

Thanks
james


Kusum Shharma

unread,
Feb 7, 2018, 7:41:44 PM2/7/18
to robotframework-users
I'm also facing this problem.

Manikandan G

unread,
Feb 9, 2018, 9:55:48 AM2/9/18
to robotframework-users

The PATH variable needs to be set properly. Could you please add the location in the PATH variable (environment variables) - C:\Python27\Lib\site-packages. 

And check "pip freeze selenium" doesnt throw any error. 

Regards,
Manikandan.G

Kalai Selvi

unread,
May 16, 2019, 12:02:33 PM5/16/19
to robotframework-users
Hi Manikandan,

I have checked everything, but still the same error comes for me. unable to add the library.Could you please help.

Pillow==6.0.0
Pygments==2.4.0
PyPubSub==3.3.0
pywin32==224
robotframework==3.1.1
robotframework-ride==1.5.2
robotframework-selenium2library==3.0.0
robotframework-seleniumlibrary==3.3.1
robotframeworklexer==1.1
selenium==3.141.0
six==1.12.0
urllib3==1.25.2
wxPython==4.0.4
Reply all
Reply to author
Forward
0 new messages