class WebDriverScriptAdapter::ExecuteAsyncScriptAdapter

Public Class Methods

wrap(driver) click to toggle source
# File lib/webdriver_script_adapter/execute_async_script_adapter.rb, line 74
def self.wrap(driver)
  new ExecEvalScriptAdapter.wrap driver
end

Public Instance Methods

execute_async_script(script, *args) click to toggle source
# File lib/webdriver_script_adapter/execute_async_script_adapter.rb, line 78
def execute_async_script(script, *args)
  results = ScriptWriter.async_results_identifier
  execute_script ScriptWriter.async_wrapper(script, *args, ScriptWriter.callback(results))
  Patiently.wait_until { evaluate_script results }
end