pivotal-selenium-rc 1.2.20090112 → 1.3.20090112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/selenium_rc/server.rb +1 -9
- data/lib/selenium_rc.rb +1 -0
- data/spec/install_and_run_spec.rb +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/selenium_rc/server.rb
CHANGED
@@ -14,10 +14,6 @@ module SeleniumRC
|
|
14
14
|
ENV["SELENIUM_SERVER_PORT"] || "4444"
|
15
15
|
end
|
16
16
|
|
17
|
-
def timeout
|
18
|
-
ENV["SELENIUM_SERVER_TIMEOUT"] || 15
|
19
|
-
end
|
20
|
-
|
21
17
|
def service_is_running?
|
22
18
|
begin
|
23
19
|
socket = TCPSocket.new(host, port)
|
@@ -39,7 +35,6 @@ module SeleniumRC
|
|
39
35
|
def start
|
40
36
|
command = "java -jar \"#{jar_path}\""
|
41
37
|
command << " -port #{self.class.port}"
|
42
|
-
command << " -timeout #{self.class.timeout}"
|
43
38
|
puts "Running: #{command}"
|
44
39
|
system(command)
|
45
40
|
end
|
@@ -81,10 +76,6 @@ module SeleniumRC
|
|
81
76
|
self.class.port
|
82
77
|
end
|
83
78
|
|
84
|
-
def timeout
|
85
|
-
self.class.timeout
|
86
|
-
end
|
87
|
-
|
88
79
|
def service_is_running?
|
89
80
|
self.class.service_is_running?
|
90
81
|
end
|
@@ -92,6 +83,7 @@ module SeleniumRC
|
|
92
83
|
protected
|
93
84
|
def wait_for_service_with_timeout
|
94
85
|
start_time = Time.now
|
86
|
+
timeout = 15
|
95
87
|
|
96
88
|
until self.class.service_is_running?
|
97
89
|
if timeout && (Time.now > (start_time + timeout))
|
data/lib/selenium_rc.rb
CHANGED