0

我正在尝试设置测试,但遇到了问题。

我正在使用Press Key Native关键字。 http://robotframework-seleniumlibrary.googlecode.com/hg/doc/SeleniumLibrary.html?r=2.5#Press%20Key%20Native 我收到以下错误。

------------------------------------------------------------------------------
Test Filter                                                           | FAIL |
No keyword with name 'Press Key Native' found.
------------------------------------------------------------------------------

我的代码是:

Test Filter
    Press Key Native    80
    Press Key Native    9
    Press Key Native    80
    Press Key Native    10
    Press Key Native    80
    Press Key Native    9
    Press Key Native    80
    Press Key Native    10
    Open Browser To Startpage
    Press Key Native    80
    Press Key Native    9
    Press Key Native    80
    Press Key Native    10
    Press Key Native    80
    Press Key Native    9
    Press Key Native    80
    Press Key Native    10
    Open Browser To Google

我一直在寻找整个互联网,并没有找到任何东西。:-(

任何帮助深表感谢!

4

1 回答 1

0

您提到的关键字是 SeleniumLibrary 的一部分,它是一个旧的硒库。大多数人使用的是 Selenium2Library,它没有那个关键字。根据对评论的回答,您似乎正在使用较新的 Selenium2Library,这就是它找不到关键字的原因。

于 2014-04-10T12:51:19.333 回答