安装的版本信息:
>pip list AutoItLibrary (1.1) decorator (3.4.0) pip (1.5.6) pywin32 (220) robotframework (2.8.7) robotframework-ride (1.2.3) robotframework-selenium2library (3.0.0) robotframework-seleniumlibrary (3.3.1) selenium (3.141.0) setuptools (23.1.0) urllib3 (1.25.3)
Log:
20190718 13:12:07.271 [WARN]: Importing test library "Selenium2Library" failed Traceback (most recent call last): Importing test library 'Selenium2Library' failed: ImportError: cannot import name is_string Traceback (most recent call last): File "D:\Python27\lib\site-packages\Selenium2Library\__init__.py", line 19, in <module> from SeleniumLibrary import SeleniumLibrary File "D:\Python27\lib\site-packages\SeleniumLibrary\__init__.py", line 22, in <module> from SeleniumLibrary.base import DynamicCore File "D:\Python27\lib\site-packages\SeleniumLibrary\base\__init__.py", line 17, in <module> from .context import ContextAware File "D:\Python27\lib\site-packages\SeleniumLibrary\base\context.py", line 17, in <module> from SeleniumLibrary.utils import escape_xpath_value File "D:\Python27\lib\site-packages\SeleniumLibrary\utils\__init__.py", line 22, in <module> from .types import is_falsy, is_noney, is_string, is_truthy, PY3 File "D:\Python27\lib\site-packages\SeleniumLibrary\utils\types.py", line 21, in <module> from robot.utils import is_string PYTHONPATH: D:\Python27\lib\site-packages\robotide\lib\robot\libraries D:\Python27\lib\site-packages\robotide\lib D:\Python27\lib\site-packages\wx-2.8-msw-unicode D:\Python27\lib\site-packages\wx-2.8-msw-unicode D:\Python27\lib\site-packages\setuptools-23.1.0-py2.7.egg D:\Python27\lib\site-packages\decorator-3.4.0-py2.7.egg C:\windows\SYSTEM32\python27.zip D:\Python27\DLLs D:\Python27\lib D:\Python27\lib\plat-win D:\Python27\lib\lib-tk D:\Python27 D:\Python27\lib\site-packages D:\Python27\lib\site-packages\win32 D:\Python27\lib\site-packages\win32\lib D:\Python27\lib\site-packages\Pythonwin . C:\Users\chenjy\Desktop D:\Python27\lib\site-packages\robotide\spec File "D:\Python27\lib\site-packages\robotide\spec\librarymanager.py", line 76, in _fetch_keywords return get_import_result(path, library_args) File "D:\Python27\lib\site-packages\robotide\spec\libraryfetcher.py", line 20, in get_import_result lib = TestLibrary(path, args) File "D:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 37, in TestLibrary libcode = importer.import_class_or_module(name) File "D:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 64, in import_class_or_module self._raise_import_failed(name, err) File "D:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 102, in _raise_import_failed raise DataError('\n'.join(msg))
每天努力一点,每天学习一点。
Keep Moving...