我第一次在独立服务器(Win 2012 R2 64 位)上安装 RF,它与任何 Internet 连接永久隔离。
在没有 Internet 连接的情况下安装 selenium2libray 的最佳方法是什么,例如参见步骤 1.4
Note You should have an internet connection to perform this installation
http://selenium-python.readthedocs.io/installation.html
到目前为止:
- --版本说 .. 在 Win32 上安装 RF 3.0.2 和 Python 2.7.14
- 这在 c:\Python27 中
- 文件夹 call RFTests 有测试套件。
我在运行测试时得到的错误是:
[ ERROR ] Error in file 'C:\RoboFrameworkTests\Tests\2179.robot': Importing test library 'selenium2library' failed: ImportError: No module named selenium2library
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_selenium2library-3.0.0-py2.7.egg
C:\Python27\lib\site-packages\wx-2.8-msw-unicode
显然我无法下载任何依赖项,因此必须手动执行此操作。
非常感谢。
最佳答案
我在库引用中使用了错误的大小写:我在应该使用 Selenium2Library 的时候使用了 selenium2library
关于python - 在独立机器上手动安装 Robot Framework,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51384415/