使用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.
我可以关闭模态窗口,它会开始工作,但几分钟后会发生同样的问题。如何永久解决此问题?