pub struct ClientBuilder<C>{ /* private fields */ }
Expand description
Implementations§
Source§impl<C> ClientBuilder<C>
impl<C> ClientBuilder<C>
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§
Source§impl<C> Clone for ClientBuilder<C>
impl<C> Clone for ClientBuilder<C>
Source§fn clone(&self) -> ClientBuilder<C>
fn clone(&self) -> ClientBuilder<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C> Debug for ClientBuilder<C>
impl<C> Debug for ClientBuilder<C>
Auto Trait Implementations§
impl<C> Freeze for ClientBuilder<C>where
C: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more