Skip to content

Commit

Permalink
Added selenium_additional_args to webrat configuration. This option w…
Browse files Browse the repository at this point in the history
…ould allow

you to pass additional arguments to the selenium server (such as -singleWindow).
  • Loading branch information
moutten committed Feb 24, 2010
1 parent d9d9cc1 commit 5a1ee60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/webrat/core/configuration.rb
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/webrat/selenium/selenium_rc_server.rb
Expand Up @@ -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
Expand Down

0 comments on commit 5a1ee60

Please sign in to comment.