class

Marionette::WebDriver

Inherits Marionette::Logger / Reference / Object

Constants

Log = ::Log.for("marionette.web_driver")

Constructors

new(browser : Browser, url : URI, client : HTTP::Client, keep_alive : Bool = false)
Source

Class methods

create_session(browser : Browser, exe_path = nil, port = nil, env = ENV.to_h, args = [] of String, **options)

Create a new Session instance using the given browser. If the driver is not on your PATH or is under a different name, you may want to provide its path explicitly using exe_path.

When the driver is started it will be automatically assigned a random open port. If you want to assign a port explicitly you can do so using the port parameter.

The environment variables the driver is exposed to can be set using env.

All other keyword arguments are passed directly into the get_session call, which are then passed into Session.start.

Source

Instance methods

browser
Source
client
Source
connection_headers(url : String | URI, keep_alive : Bool = false)
Source
execute(command : String, params = {} of String => String)
Source
get_session(type : Session::Type = :local, **options)
Source
keep_alive?
Source
request(method, url, body = {} of String => String, headers = nil)
Source
url?
Source