我是RobotFrameWork新手,我目前正在设置我的机器上的所有东西,以便能够在一些测试场景中使用这个工具。
我得到的问题如下:
(venv) C:\Users\aharo\PycharmProjects\Automation>robot Salesforce/Login.robot
[ ERROR ] Error in file 'C:\Users\aharo\PycharmProjects\Automation\Salesforce\Login.robot' on line 4: Importing test library 'Selenium2library' failed: ModuleNotFoundEr
ror: No module named 'Selenium2library'
Traceback (most recent call last):
None我的当前机器人文件设置如下:
*** Settings ***
Library Selenium2library
*** Variables ***
*** Test Cases ***
LoginTest
open browser https://test.salesforce.com/ chrome
input text id:username [my_username]
input text id:password [my_password]
click element xpath: //input[@id='Login']
clsoe browser
*** Keywords ***然而,我不知道我在哪里犯了一个错误。我目前正在使用windows 10,我已经安装了插件和正确的软件包。
我还能做什么?
发布于 2021-03-08 04:48:47
Selenium2library的大小写是错误的--它被命名为Selenium2Library (大写"L")。而且,这个库非常古老,不受支持。你应该升级到SeleniumLibrary
https://stackoverflow.com/questions/66498577
复制相似问题