Struct thirtyfour::common::config::WebDriverConfig
source · #[non_exhaustive]pub struct WebDriverConfig {
pub keep_alive: bool,
pub poller: Arc<dyn IntoElementPoller + Send + Sync>,
pub user_agent: String,
}
Expand description
Configuration options used by a WebDriver
instance and the related SessionHandle
.
The configuration of a WebDriver
will be shared by all elements found via that instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.keep_alive: bool
If true, send the “Connection: keep-alive” header with all requests.
poller: Arc<dyn IntoElementPoller + Send + Sync>
The default poller to use when performing element queries or waits.
user_agent: String
The user agent to use when sending commands to the webdriver server.
Implementations§
source§impl WebDriverConfig
impl WebDriverConfig
sourcepub fn builder() -> WebDriverConfigBuilder
pub fn builder() -> WebDriverConfigBuilder
Create new WebDriverConfigBuilder
.
sourcepub fn default_user_agent() -> String
pub fn default_user_agent() -> String
Get the default user agent.
Trait Implementations§
source§impl Clone for WebDriverConfig
impl Clone for WebDriverConfig
source§fn clone(&self) -> WebDriverConfig
fn clone(&self) -> WebDriverConfig
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 Debug for WebDriverConfig
impl Debug for WebDriverConfig
Auto Trait Implementations§
impl Freeze for WebDriverConfig
impl !RefUnwindSafe for WebDriverConfig
impl Send for WebDriverConfig
impl Sync for WebDriverConfig
impl Unpin for WebDriverConfig
impl !UnwindSafe for WebDriverConfig
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