Class: Capybara::AsyncRunner::JsBuilder::RawResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/capybara/async_runner/js_builder.rb

Instance Method Summary collapse

Instance Method Details

#fetchObject



37
38
39
40
41
# File 'lib/capybara/async_runner/js_builder.rb', line 37

def fetch
  Capybara::AsyncRunner::WaitHelper.wait_until(2) do
    Capybara.current_session.evaluate_script(result_code)
  end
end

#result_codeObject



43
44
45
# File 'lib/capybara/async_runner/js_builder.rb', line 43

def result_code
  "window.Capybara[#{uuid.inspect}]"
end