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)
SourceClass 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.
Instance methods
browser
Sourceclient
Sourceconnection_headers(url : String | URI, keep_alive : Bool = false)
Sourceexecute(command : String, params = {} of String => String)
Sourceget_session(type : Session::Type = :local, **options)
Sourcekeep_alive?
Sourcerequest(method, url, body = {} of String => String, headers = nil)
Sourceurl
Sourceurl?
Source