Index: lib/webrat/selenium/selenium_rc_server.rb =================================================================== --- lib/webrat/selenium/selenium_rc_server.rb (revision 56830) +++ lib/webrat/selenium/selenium_rc_server.rb (revision 56856) @@ -36,7 +36,7 @@ Webrat.configuration.selenium_server_port, :timeout => Webrat.configuration.selenium_browser_startup_timeout) @remote_control.jar_file = jar_path - + @remote_control.additional_args = Webrat.configuration.selenium_additional_startup_args return @remote_control end Index: lib/webrat/core/configuration.rb =================================================================== --- lib/webrat/core/configuration.rb (revision 56830) +++ lib/webrat/core/configuration.rb (revision 56856) @@ -53,6 +53,9 @@ # Set the timeout for waiting for the browser process to start attr_accessor :selenium_browser_startup_timeout + + # Set the additional selenium params example to use custom profile + attr_accessor :selenium_additional_startup_args # How many redirects to the same URL should be halted as an infinite redirect # loop? Defaults to 10 @@ -66,8 +69,9 @@ self.application_framework = :rails self.selenium_server_port = 4444 self.infinite_redirect_limit = 10 self.selenium_browser_key = '*firefox' self.selenium_browser_startup_timeout = 5 + self.selenium_additional_startup_args = [] end def open_error_files? #:nodoc: Index: spec/private/core/configuration_spec.rb =================================================================== --- spec/private/core/configuration_spec.rb (revision 56830) +++ spec/private/core/configuration_spec.rb (revision 56856) @@ -74,6 +74,10 @@ @config.selenium_browser_key.should == '*firefox' end + it 'should default additional selenium remote control startup args to empty array' do + @config.selenium_additional_startup_args.should == [] + end + it 'should default selenium browser startup timeout to 5 seconds' do @config.selenium_browser_startup_timeout.should == 5 end