Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- 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