MuraliKola / robotframework-seleniumlibrary

Automatically exported from code.google.com/p/robotframework-seleniumlibrary
Apache License 2.0
1 stars 0 forks source link

Do we need to start selenium server to use Selenium2Library in RIDE pls? #223

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Environment Info:
1. Python26 Jython2.5.1 WindowsXP 
2. we use RF with Seleniumlibrary2.5.7 + selenium-server2.0 fluently.

________Question1_____________
Do we need to start selenium server to use Selenium2Library in RIDE pls?

________Trial Steps_____________
1. put the Selenium2Library folder to this path: C:\Python26\Lib\site-packages
2. create a new project in RIDE and import the library Selenium2Library to test 
suite
3. write test case: the keyword "open browser" has been hightlighted with bold 
blue style and the tooltip shows the keyword if from selenium2library.
    open browser xxx xxx
4. no matter we started the Selenum-Server2.0 or not, it reported the same 
error as following: 
-------------
FAIL: No keyword with name 'Open Browser' found.
-------------
20111228 16:07:26.315   ERROR   Invalid syntax in file 
'd:\ride\wu3\suites\Test1\Array.tsv' in table 'Setting': Importing test library 
'Selenium2Library' failed: ImportError: No module named api
PYTHONPATH: 
['C:\\Python26\\Lib\\site-packages\\Selenium2Library\\lib\\decorator-3.3.2', 
'C:\\Python26\\Lib\\site-packages\\Selenium2Library\\lib\\selenium-2.8.1\\py', 
'C:\\Python26\\Lib\\site-packages\\Selenium2Library\\lib\\decorator-3.3.2', 
'C:\\Python26\\Lib\\site-packages\\Selenium2Library\\lib\\selenium-2.8.1\\py', 
'C:\\Python26\\Lib\\site-packages', 
'C:\\Python26\\Lib\\site-packages\\robot\\libraries', 'C:\\jython2.5.1\\Lib', 
'__classpath__', '__pyclasspath__/', 'C:\\jython2.5.1\\Lib\\site-packages', 
'D:\\RIDE\\wu3\\lib', '.']
CLASSPATH: C:\jython2.5.1\jython.jar;C:\Python26\Lib;
Traceback (most recent call last):
 File "C:\Python26\Lib\site-packages\robot\utils\importing.py", line 94, in _import
   __import__(name)
 File "C:\Python26\Lib\site-packages\Selenium2Library\__init__.py", line 8, in <module>
   from keywords import *
 File "C:\Python26\Lib\site-packages\Selenium2Library\keywords\__init__.py", line 1, in <module>
   from _logging import _LoggingKeywords
 File "C:\Python26\Lib\site-packages\Selenium2Library\keywords\_logging.py", line 4, in <module>
   from robot.api import logger
-------------

Original issue reported on code.google.com by scottyan...@gmail.com on 28 Dec 2011 at 8:36

GoogleCodeExporter commented 8 years ago
Also, it showed us this error info by using the official demo(login tests) 
without starting selenium server.
-----------
Import Selenium2Library module failed.
Please make sure you have Selenium2Library installed.

Original comment by scottyan...@gmail.com on 9 Jan 2012 at 2:12

GoogleCodeExporter commented 8 years ago
First of all, this tracker is for the old SeleniumLibrary. Selenium2Library has 
its own tracker in its project pages on GitHub. Second, at least with 
SeleniumLibrary you always need to have the server running. I don't know do you 
always need it with Selenium2Library.

Original comment by pekka.klarck on 10 Jan 2012 at 9:39