Module: WebDriverScriptAdapter::Patiently

Defined in:
lib/webdriver_script_adapter/execute_async_script_adapter.rb

Class Method Summary collapse

Class Method Details

.wait_untilObject



74
75
76
77
78
79
# File 'lib/webdriver_script_adapter/execute_async_script_adapter.rb', line 74

def wait_until
  ::Timeout.timeout(WebDriverScriptAdapter.max_wait_time) do
    sleep(WebDriverScriptAdapter.wait_interval) while (value = yield).nil?
    value
  end
end