ruby - watir-webdriver - 打字速度非常慢

时间:2016-08-23 18:19:44

标签: ruby internet-explorer internet-explorer-11 watir watir-webdriver

require 'watir-webdriver'
b = Watir::Browser.new :ie
b.goto "google.com"
b.text_field(title: "Search").set "ABCDEFG"

当运行上面的代码时,我遇到一个问题,其中Watir需要SIX秒来输入一个字符,然后需要六秒钟来输入下一个字符,依此类推。每次都会发生这种情况我在Watir的文档中上下搜索,并没有找到提高打字速度的方法。曾经有一个Watir::Browser#speed方法,但我搜索了源代码,没有找到speed的引用。

我看了this question,但它不再有用了:<

由于DCOM,我必须使用互联网爆炸:<

RUBY_VERSION => 2.3.1
Watir::VERSION => 0.9.3
IE Version => 11.494
IEDriverServer => 2.53_1 x64

0 个答案:

没有答案