class

Capybara::ChromiumDriver

Inherits Reference < Object

Constructors

new(binary : String | Nil = nil)

Class methods

available?

Raises when no Chromium binary is installed (mirror specs skip on this — set CHROMIUM_BIN to point at one explicitly).

Instance methods

close
evaluate(expression : String) : JSON::Any | Nil

Runs expression and returns its JSON value (returnByValue + awaitPromise — evaluate_script semantics of the gem).

execute_script(script : String) : Nil
process
screenshot(path : String) : Nil
socket
user_data_dir
visit(url : String) : Nil

Navigates and waits for the document to settle (readyState complete) — Capybara's visit waits for load by default.

wait_for_load(timeout : Time::Span = 10.seconds) : Nil