错误导航到使用watir-webdriver的URL

时间:2012-10-08 18:02:24

标签: ruby internet-explorer cucumber watir-webdriver

使用IE8和Windows 7

我有以下ruby代码:

new_browser = Watir::Browser.new :ie
my_url = "http://myworkingurl.mydomain.net/mypage.html"
new_browser.goto my_url

当Internet Explorer窗口打开时,我会收到以下模式弹出窗口:

A program on your computer has corrupted your default search provider
setting for Internet Explorer.

Internet Explorer has reset this setting to your original search provider,
<redacted>.

Internet Explorer will now open Search Settings, where you can change this
setting or install more search providers.

由于这种意外的模态弹出,会抛出以下异常:

Failed to navigate to http://myworkingurl.mydomain.net/mypage.html. This usually means that a call to the COM method IWebBrowser2::Navigate2() failed.

我可以关闭模​​态窗口,它会开始工作,但几分钟后会发生同样的问题。如何永久解决此问题?

1 个答案:

答案 0 :(得分:0)

看起来你需要hotfix from Microsoft。试试吧。