【发布时间】:2014-09-11 00:33:23
【问题描述】:
我在Robot Framework 中使用Selenium2Library。我想点击网页中的链接,但不想等待页面重新加载。
在 Robot Framework 中使用SeleniumLibrary 时,用户可以使用这个命令:
| Click Link | link text | # A page is expected to load.
| Click Link | another link | don't wait | # A page is not expected to load.
但我在 Selenium2Library 中找不到等效的命令。
如何在Robot Framework的Selenium2Library中实现“点击不等待页面重新加载”?
【问题讨论】:
-
你接受了我的回答(谢谢!),所以我很好奇哪些建议对你有用。
-
@BryanOakley 我正在使用方法
Mouse Down followed by Mouse Up。如果我使用Click Link,它将等待页面重新加载。如果我使用Mouse Down followed by Mouse Up,它不会等待页面重新加载。感谢您的帮助!
标签: selenium selenium-webdriver robotframework