I have following code:
Capybara.register_driver :selenium do |app|
driver = Capybara::Selenium::Driver.new(app, browser: :firefox, profile: "selenium")
driver.browser.manage.window.resize_to(600,800)
driver
end
And during running test there is popup window with certificate so every time I have to press it.
How to automatically do it, or to configure Capybara firefox profile to automatically accept certificate?
As documented here, you need to set
assume_untrusted_certificate_issuertofalseon yourFirefox::Profile. Eg:If you want to know the details of how this works in the firefox driver, see http://code.google.com/p/selenium/wiki/UntrustedSSLCertificates