MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / poll_for_ready

Method poll_for_ready

rb/lib/selenium/server.rb:227–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 end
226
227 def poll_for_ready
228 start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
229 loop do
230 return if status_ok?
231
232 elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time
233 raise Error, "remote server not ready in #{@timeout} seconds" if elapsed > @timeout
234
235 sleep 0.5
236 end
237 end
238
239 def socket_connected?
240 @socket_connected ||= socket.connected?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected