Selenium2Library is not detecting in Robot framework

204 views
Skip to first unread message

Manikandan G

unread,
Jan 29, 2018, 1:38:32 AM1/29/18
to robotframework-users
Hi All,

         We are planning to automate web browser testing using Robot framework with Selenium . For that we have installed in  windows with the following  versions.

  1. Python 2.7 (python-2.7.14) – 32 bit – Windows .
  2. Set environment variables for the Python version 2.7 (System variables - > PYTHONPATH, PATH)
  3. Wx python (wxPython2.8-win32-unicode-2.8.12.1-py27) – 32 bit – Windows
  4. Robot framework (robotframework-2.8.6.win32) – 32 bit – Windows
  5. RIDE framework (robotframework-ride-1.3.win32) – 32 bit – Windows


    The RIDE is running perfectly. I have installed "Selenium2Library" , But when I import its not at all detecting . Always showing in "RED" . Verified from command line also.There is no error for Selenium2Library. Its showing the version properly. 


      Even tried with "SeleniumLibrary" (installed ) too. Same error. 

The installation logs below:
------------------------------------

C:\Users\myPC>pip install robotframework-selenium2library
Collecting robotframework-selenium2library
  Downloading robotframework_selenium2library-3.0.0-py2.py3-none-any.whl
Collecting robotframework-seleniumlibrary>=3.0.0 (from robotframework-selenium2l
ibrary)
  Downloading robotframework_seleniumlibrary-3.0.1-py2.py3-none-any.whl (75kB)
    100% |################################| 81kB 301kB/s
Collecting selenium>=2.53.6 (from robotframework-seleniumlibrary>=3.0.0->robotfr
amework-selenium2library)
  Downloading selenium-3.8.1-py2.py3-none-any.whl (942kB)
    100% |################################| 952kB 233kB/s
Collecting robotframework>=2.8.7 (from robotframework-seleniumlibrary>=3.0.0->ro
botframework-selenium2library)
  Downloading robotframework-3.0.2.tar.gz (440kB)
    100% |################################| 450kB 256kB/s
Installing collected packages: selenium, robotframework, robotframework-selenium
library, robotframework-selenium2library
  Found existing installation: robotframework 2.8.6
    DEPRECATION: Uninstalling a distutils installed project (robotframework) has
 been deprecated and will be removed in a future version. This is due to the fac
t that uninstalling a distutils project will only partially uninstall the projec
t.
    Uninstalling robotframework-2.8.6:
      Successfully uninstalled robotframework-2.8.6
  Running setup.py install for robotframework ... done
Successfully installed robotframework-3.0.2 robotframework-selenium2library-3.0.
0 robotframework-seleniumlibrary-3.0.1 selenium-3.8.1

C:\Users\myPC>



Could you please help to resolve the "Selenium2Library" import error.


Thanks in Advance,
Manikandan.G

Tatu Aalto

unread,
Jan 29, 2018, 3:50:42 AM1/29/18
to gmanik...@gmail.com, robotframework-users
Ugh

You could try to see is this a problem with RIDE or with something else first. Most likely the easiest way to do that is to write a simple test case that open and closes the browser. If the test works fine when running from command line, then the problem is with RIDE and not with Robot Framework and Selenium2Library/SeleniumLibrary.

Please also note that Selenium2Library has been deprecated (Starting from the 3.0 release and Selenium2Library serves a project to ease the migration to the SeleniumLibrary) and all new development is done in the SeleniumLibrary project.

-Tatu
Send from my mobile


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Manikandan G

unread,
Jan 30, 2018, 2:45:41 AM1/30/18
to Tatu Aalto, robotframework-users
Thanks, I'll check it out. 

Manikandan G

unread,
Jan 30, 2018, 10:01:26 AM1/30/18
to robotframework-users
Hi Tatu,

            Thanks for your reply. 

             I have tried to execute simple web page opens by running from command line. But am getting there is no keyword with name error. 
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Tatu Aalto

unread,
Jan 30, 2018, 12:53:35 PM1/30/18
to gmanik...@gmail.com, robotframework-users
Ugh

That usually means that your library import is not done correctly or there is a error in the installation. Could you share a simple example which demonstrates the problem and tell how you launch the test from the command line?


-Tatu
Send from my mobile
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages