diff --git a/lib/webrat/core/configuration.rb b/lib/webrat/core/configuration.rb index 619ef7bf..7e05607d 100755 --- a/lib/webrat/core/configuration.rb +++ b/lib/webrat/core/configuration.rb @@ -65,6 +65,9 @@ def application_port_for_selenium # Set the timeout for waiting for the browser process to start attr_accessor :selenium_browser_startup_timeout + # Which additional arguments passed to the selenium server + attr_accessor :selenium_additional_args + # How many redirects to the same URL should be halted as an infinite redirect # loop? Defaults to 10 attr_accessor :infinite_redirect_limit diff --git a/lib/webrat/selenium/selenium_rc_server.rb b/lib/webrat/selenium/selenium_rc_server.rb index 82aae31a..226c2f67 100644 --- a/lib/webrat/selenium/selenium_rc_server.rb +++ b/lib/webrat/selenium/selenium_rc_server.rb @@ -35,6 +35,7 @@ def remote_control @remote_control = ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, :timeout => Webrat.configuration.selenium_browser_startup_timeout) + @remote_control.additional_args << Webrat.configuration.selenium_additional_args unless Webrat.configuration.selenium_additional_args.nil? @remote_control.jar_file = jar_path return @remote_control