我在机器人框架中遇到 no-module-found 错误

问题描述 投票:0回答:1

即使安装了 robotsframework 和 robotsframework-seleniumlibrary 库它显示没有模块找到错误。如果我执行 pip list 我可以看到列出的库。

Unresolved library: Seleniumlibrary.
Error generating libspec:
Importing library 'Seleniumlibrary' failed: ModuleNotFoundError: No 
module named 'Seleniumlibrary'
Consider adding the needed paths to the "robot.pythonpath" setting
and calling the "Robot Framework: Clear caches and restart" action.

click here to see the code image

python selenium-webdriver automated-tests robotframework
1个回答
0
投票

应该是

SeleniumLibrary
(大写 L)而不是
Seleniumlibrary
(小写 l)

© www.soinside.com 2019 - 2024. All rights reserved.