Struct fantoccini::ClientBuilder
source · [−]pub struct ClientBuilder<C> where
C: Connect + Send + Sync + Clone + Unpin, { /* private fields */ }
Expand description
Implementations
sourceimpl ClientBuilder<HttpsConnector<HttpConnector>>
impl ClientBuilder<HttpsConnector<HttpConnector>>
sourcepub fn native() -> Self
Available on crate feature native-tls
only.
pub fn native() -> Self
native-tls
only.Build a Client
that will connect using native-tls
.
sourceimpl<C> ClientBuilder<C> where
C: Connect + Send + Sync + Clone + Unpin + 'static,
impl<C> ClientBuilder<C> where
C: Connect + Send + Sync + Clone + Unpin + 'static,
sourcepub fn new(connector: C) -> Self
pub fn new(connector: C) -> Self
Build a Client
that will connect using the given HTTP connector
.
sourcepub fn capabilities(&mut self, cap: Capabilities) -> &mut Self
pub fn capabilities(&mut self, cap: Capabilities) -> &mut Self
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.
Capability | Key | Value Type | Description |
---|---|---|---|
Browser name | "browserName" | string | Identifies the user agent. |
Browser version | "browserVersion" | string | Identifies the version of the user agent. |
Platform name | "platformName" | string | Identifies the operating system of the endpoint node. |
Accept insecure TLS certificates | "acceptInsecureCerts" | boolean | Indicates whether untrusted and self-signed TLS certificates are implicitly trusted on navigation for the duration of the session. |
Page load strategy | "pageLoadStrategy" | string | Defines the current session’s page load strategy. |
Proxy configuration | "proxy" | JSON Object | Defines the current session’s proxy configuration. |
Window dimensioning/positioning | "setWindowRect" | boolean | Indicates whether the remote end supports all of the commands in Resizing and Positioning Windows. |
Session timeouts configuration | "timeouts" | JSON Object | Describes the timeouts imposed on certain session operations. |
Unhandled prompt behavior | "unhandledPromptBehavior" | string | Describes the current session’s user prompt handler. |
Trait Implementations
sourceimpl<C: Clone> Clone for ClientBuilder<C> where
C: Connect + Send + Sync + Clone + Unpin,
impl<C: Clone> Clone for ClientBuilder<C> where
C: Connect + Send + Sync + Clone + Unpin,
sourcefn clone(&self) -> ClientBuilder<C>
fn clone(&self) -> ClientBuilder<C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<C> RefUnwindSafe for ClientBuilder<C> where
C: RefUnwindSafe,
impl<C> Send for ClientBuilder<C>
impl<C> Sync for ClientBuilder<C>
impl<C> Unpin for ClientBuilder<C>
impl<C> UnwindSafe for ClientBuilder<C> where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more