Untrusted Certificates Force Ruby Selenium

0 votes

I'm running ruby-rspec with selenium and capybara. When I navigate to the app host I'm getting an InsecureCertificateError in the browser.

How do I load a profile into selenium so that it will ignore the untrusted certificates? Below is my code:

Capybara.register_driver :selenium do |app|

  profile = Selenium::WebDriver::Firefox::Profile.new

  profile.assume_untrusted_certificate_issuer=false

  Capybara::Selenium::Driver.new(app, browser: :firefox, profile: profile)

end

May 9, 2018 in Selenium by Martin
• 4,320 points
1,882 views

1 answer to this question.

0 votes

Check this out

capabilities = Selenium::WebDriver::Remote::W3C::Capabilities.firefox(accept_insecure_certs: true)

driver = Selenium::WebDriver.for :firefox, desired_capabilities: :capabilities

Also see this selenium docs

answered May 9, 2018 by Samarpit
• 5,910 points

Related Questions In Selenium

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How can I handle certificates when testing pages with Selenium?

In Firefox, you should set 'accept_untrusted_certs' of ...READ MORE

answered May 8, 2018 in Selenium by king_kenny
• 3,710 points
11,781 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,676 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,144 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,875 views
0 votes
1 answer

How to login a forum using Selenium with Python

You should try to directly log in ...READ MORE

answered Apr 27, 2018 in Selenium by Samarpit
• 5,910 points
2,755 views
0 votes
1 answer

Selenium grid 2 in chrome browser

The problem is in -Dwebdriver arguments. Maybe you should do ...READ MORE

answered Apr 27, 2018 in Selenium by Samarpit
• 5,910 points
1,258 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP