Ruby 使用watir webdriver导航到URL时出错

Ruby 使用watir webdriver导航到URL时出错,ruby,internet-explorer,cucumber,watir-webdriver,Ruby,Internet Explorer,Cucumber,Watir Webdriver,使用IE8和Windows7 我有以下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 provid

使用IE8和Windows7

我有以下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.

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

看起来您需要一个解决方案。试试看。

如果您在IE中打开该url而不使用watir webdriver(或任何自动化),会发生什么?如果我手动打开,它会工作。我只在运行cucumber时得到对话框,而且每次都会得到对话框,不管URL是什么。我真的希望这能奏效。但是,没有一个修补程序会安装!它说它不适用于我的电脑,但我知道它是。
Failed to navigate to http://myworkingurl.mydomain.net/mypage.html. This usually means that a call to the COM method IWebBrowser2::Navigate2() failed.