acceptance/ruby/support/extensions.rb
# Do any special browser-related configuration

Do any special browser-related configuration
Do any special browser - related configuration
def configure_browser()
    if test_config.browser == "ie"
      Capybara.register_driver :selenium do |app|
        Capybara::Selenium::Driver.new(app, :browser=>:internet_explorer)
      end
    else
        Capybara.register_driver :selenium do |app|
            if !(test_config.browserPath.nil? || test_config.browserPath.empty?)
                require 'selenium/webdriver'
                Selenium::WebDriver::Firefox::Binary.path = test_config.browserPath
            end
            Capybara::Selenium::Driver.new(app, :browser => :firefox)
        end
    end
  end
def configure_browser ( ) if test_config . browser == "ie" Capybara . register_driver :selenium do | app | Capybara :: Selenium :: Driver . new ( app , :browser => :internet_explorer ) end else Capybara . register_driver :selenium do | app | if ! ( test_config . browserPath . nil? || test_config . browserPath . empty? ) require 'selenium/webdriver' Selenium :: WebDriver :: Firefox :: Binary . path = test_config . browserPath end Capybara :: Selenium :: Driver . new ( app , :browser => :firefox ) end end end
Do any special browser-related configuration
Do any special browser - related configuration