brianjlandau (owner)

Revisions

gist: 141590 Download_button fork
public
Public Clone URL: git://gist.github.com/141590.git
Embed All Files: show embed
selenium_rc_server.patch #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- 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