Poltergeist Stripe checkout.js

后端 未结 2 1331
旧时难觅i
旧时难觅i 2021-02-09 07:29

I\'m trying to test in my Rails app the Stripe checkout popup (http://www.stripe.com/checkout).

I was using Capybara + selenium-driver and everything worked well. When t

2条回答
  •  遥遥无期
    2021-02-09 08:02

    If you have a similar issue with phantomjs 1.9.7, it's because of the SSL settings. You can disable checking using:

    Capybara.register_driver :poltergeist do |app|
      options = {
        phantomjs_options: ['--ssl-protocol=any', '--ignore-ssl-errors=yes'],
        inspector: false
      }
      Capybara::Poltergeist::Driver.new(app, options)
    end
    

提交回复
热议问题