butterbee/webdriver
The webdriver module contains the WebDriver type and functions to create and configure webdriver sessions.
Types
Represents a webdriver session
pub type WebDriver(state) {
WebDriver(
socket: @internal WebDriverSocket,
context: option.Option(browsing_context.BrowsingContext),
config: config.ButterbeeConfig,
state: Result(state, @internal ButterbeeError),
browser: @internal Browser,
)
}
Constructors
-
WebDriver( socket: @internal WebDriverSocket, context: option.Option(browsing_context.BrowsingContext), config: config.ButterbeeConfig, state: Result(state, @internal ButterbeeError), browser: @internal Browser, )Arguments
- socket
-
The socket to the webdriver server
- context
-
The browsing context of the webdriver session
- config
-
The config used during the webdriver session
- state
-
Some state that is returned from a command (e.g.
node.value()fills state with Result(String, error.ButterbeeError))