Struct fantoccini::ClientBuilder[][src]

pub struct ClientBuilder<C> where
    C: Connect + Send + Sync + Clone + Unpin
{ /* fields omitted */ }
Expand description

A builder for WebDriver Client instances.

You will likely want to use native or rustls (depending on your preference) to start the builder. If you want to supply your own connector, use new.

To connect to the WebDriver instance, call connect.

Implementations

This is supported on crate feature rustls-tls only.

Build a Client that will connect using Rustls.

This is supported on crate feature native-tls only.

Build a Client that will connect using native-tls.

Build a Client that will connect using the given HTTP connector.

Pass the given WebDriver capabilities to the browser.

The WebDriver specification has a list of standard capabilities, which are given below. In addition, most browser vendors support a number of browser-specific capabilities stored in an object under a prefixed key like moz:firefoxOptions or goog:chromeOptions.

The standard options are given below. See the specification for more details.

CapabilityKeyValue TypeDescription
Browser name"browserName"stringIdentifies the user agent.
Browser version"browserVersion"stringIdentifies the version of the user agent.
Platform name"platformName"stringIdentifies the operating system of the endpoint node.
Accept insecure TLS certificates"acceptInsecureCerts"booleanIndicates whether untrusted and self-signed TLS certificates are implicitly trusted on navigation for the duration of the session.
Page load strategy"pageLoadStrategy"stringDefines the current session’s page load strategy.
Proxy configuration"proxy"JSON ObjectDefines the current session’s proxy configuration.
Window dimensioning/positioning"setWindowRect"booleanIndicates whether the remote end supports all of the commands in Resizing and Positioning Windows.
Session timeouts configuration"timeouts"JSON ObjectDescribes the timeouts imposed on certain session operations.
Unhandled prompt behavior"unhandledPromptBehavior"stringDescribes the current session’s user prompt handler.

Connect to the WebDriver session at the webdriver URL.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.