我的測試自動化使用IE瀏覽器時遇到錯誤。Ruby cucumber:如何忽略Selenium WebDriver中的IE保護模式錯誤?
Unexpected error launching Internet Explorer. Protected Mode settings
are not the same for all zones.
Enable Protected Mode must be set to the same value
(enabled or disabled) for all zones.
(Selenium::WebDriver::Error::NoSuchDriverError)
爲了讓測試運行,我必須在IE選項中手動取消選中它們。我做了一些研究,有一種方法可以在java中忽略它,但我還沒有在Ruby中找到它。我發現下面是(我沒有使用遠程服務器):
IE
Make sure that Internet Options → Security has the same
Protected Mode setting (on or off, it doesn't
matter as long as it is the same value) for all zones.
From: https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings
我ENV:
Ruby: 1.9.3
Selenium WebDriver: 2.53
Cucumber: 2.1
有人已經在Ruby中務實做到了這一點?請分享您的解決方案。
謝謝Justin!你有很好的觀點。我將與我們的測試人員討論有關選項。再次感謝! – fongfong