On Fri, Nov 19, 2010 at 11:05 AM, Litha K <[email protected]> wrote: > > Security warning: > > Although this page is encrypted, the information you have entered is > to be sent over an uncrypted connection and could be easily be read by > a third party. Are you sure you want to continue sending this > information? > > Cancel Continue. >
OK. The proper solution is obviously to fix the app under test to not use HTTP from an HTTPS page. Failing that, here's how you can tweak Firefox preferences: 1. Find the preference you want to change in about:config 2. Create a new Firefox profile and set the preference: tweaked_profile = Selenium::WebDriver::Firefox::Profile.new tweaked_profile["some.preference"] = false 3. Create a new driver, passing in the profile driver = Selenium::WebDriver.for :firefox, :profile => fixed_profile 4. Wrap the driver in a Watir::Browser instance browser = Watir::Browser.new(driver) It looks like WebDriver sets some relevant preferences to the correct value though, see: http://code.google.com/p/selenium/source/browse/trunk/rb/lib/selenium/webdriver/firefox/profile.rb#317 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
