rubyseleniumwebdriverwatirwatir-webdriver

profile.assume_untrusted_certificate_issuer = false not working for me


Using watir-webdriver for automation I'm not able to handle Firefox "Untrusted Connection" . Already tried this:

 require 'watir-webdriver'
 profile = Selenium::WebDriver::Firefox::Profile.new
 profile.assume_untrusted_certificate_issuer = false
 browser = Watir::Browser.new(:firefox, :profile => profile)
 browser.goto("http://xxx.xxx.xxx.com)

Still got the same result ? Any help would be appreciated...


Solution

  • This worked for me :

       @profile=Selenium::WebDriver::Firefox::Profile.from_name "default"
       @profile.assume_untrusted_certificate_issuer=false
       @profile.secure_ssl = true 
       browser = Watir::Browser.new :firefox, :profile => @profile