未找到名称为“打开浏览器”的关键字

Van*_*ani 4 python-3.x robotframework selenium-webdriver

我正在编写一个简单的测试用例,其中我使用带有 python 和 selenium2library 的机器人框架打开带有 url 的 chrome 浏览器

我已经尝试了所有方法来完成它,例如安装和卸载Python等

这是错误

No keyword with name 'Open Browser' found.
------------------------------------------------------------------------------
Check                                                                 | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
=============================================================================
Run Code Online (Sandbox Code Playgroud)

小智 7

您需要在“设置”部分中添加一行内容:

Library | SeleniumLibrary
Run Code Online (Sandbox Code Playgroud)

你可能还需要运行

pip install --upgrade robotframework-seleniumlibrary
Run Code Online (Sandbox Code Playgroud)

祝你好运!