Selenium2Library not present error

Issue #1 new
Shivakumar GN created an issue

(py3env) [user@mymachine login_tests]$ robot valid_login.robot [ ERROR ] Error in file '/home/user/test_scripts/WebDemo/login_tests/resource.robot': Importing test library 'Selenium2Library' failed: ImportError: No module named 'Selenium2Library' Traceback (most recent call last): None PYTHONPATH: /home/user/py3env/bin /usr/lib64/python34.zip /usr/lib64/python3.4 /usr/lib64/python3.4/plat-linux /usr/lib64/python3.4/lib-dynload /home/user/py3env/lib64/python3.4/site-packages /home/user/py3env/lib/python3.4/site-packages ============================================================================== Valid Login :: A test suite with a single test for valid login.
============================================================================== Valid Login | FAIL | No keyword with name 'Open Browser' found.

Also teardown failed: No keyword with name 'Close Browser' found.


Valid Login :: A test suite with a single test for valid login. | FAIL | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1 failed ============================================================================== Output: /home/user/test_scripts/WebDemo/login_tests/output.xml Log: /home/user/test_scripts/WebDemo/login_tests/log.html Report: /home/user/test_scripts/WebDemo/login_tests/report.html

Comments (2)

  1. XUYI RUAN

    had the same issue here when running the WebDemo. Tried reinstall Selenium2Library and did not seem to be fixed.

  2. Samu Saukkonen

    Hey guys,

    The problem is caused by the renaming of the SeleniumLibrary. "Starting from version 3.0, Selenium2Library is renamed to SeleniumLibrary"

    There's a ongoing pull request in the project to fix this problem. As for now, you can manually rename the imported library from "Selenium2Library" to "SeleniumLibrary" in the \webdemo\login_tests\resource.robot -file (on line 7). This will allow you to run the tests without further problems.

  3. Log in to comment