【问题标题】:RobotFramework: Keyword 'Selenium2Library.Input Text' expected 2 arguments, got 1RobotFramework:关键字“Selenium2Library.Input Text”预期 2 个参数,得到 1
【发布时间】:2013-10-24 00:05:39
【问题描述】:

我正在尝试设置自动测试。我正在使用 RobotFramework 和 Selenium2Library。

当我运行测试时,我得到Keyword 'Selenium2Library.Input Text' expected 2 arguments, got 1 的行:

Input Text    id=quota 128

我做错了什么?我用谷歌搜索并找不到答案。 :(

我的指令是http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html

【问题讨论】:

  • 好吧,刚刚找到答案:this: Input Text id=quota 128 需要这样: Input Text id=quota 128 需要四个空格。

标签: selenium-webdriver robotframework


【解决方案1】:

参数必须至少用两个空格分隔,所以

Input Text    quota    128

会的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-11-08
    • 2022-08-24
    • 2018-09-07
    • 2017-08-08
    • 2020-05-19
    • 1970-01-01
    • 2021-03-13
    • 2018-11-24
    相关资源
    最近更新 更多