0

使用 IE8 和 Windows 7

我有以下红宝石代码:

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.

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

4

1 回答 1

0

看起来您需要Microsoft 的修补程序。试试看。

于 2012-10-10T04:16:12.257 回答