require 'selenium/webdriver' 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
Is it possible I can pass variable here
ReplyDeleteprofile = Selenium::WebDriver::Variable::Profile.new
instead of
profile = Selenium::WebDriver::Firefox::Profile.new
and I can give any value to that variable like Firefox or Chrome