Skip to content

Instantly share code, notes, and snippets.

@brianjlandau
Created July 6, 2009 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjlandau/141590 to your computer and use it in GitHub Desktop.
Save brianjlandau/141590 to your computer and use it in GitHub Desktop.
--- old_selenium_rc_server.rb 2009-07-06 14:11:57.000000000 -0400
+++ selenium_rc_server.rb 2009-07-06 14:12:18.000000000 -0400
@@ -30,7 +30,7 @@
def remote_control
return @remote_control if @remote_control
- @remote_control = ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, 5)
+ @remote_control = ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, :timeout => 5)
@remote_control.jar_file = jar_path
return @remote_control
@@ -70,7 +70,7 @@
def stop
silence_stream(STDOUT) do
- ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, 5).stop
+ ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, :timeout => 5).stop
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment