pub struct BrowserTimeouts { /* private fields */ }Expand description
WebDriver timeout configuration applied before running a browser test.
The builder setters accept Duration values. Use each setter’s _opt fallback for
Option<Duration> values. Leaving a timeout unset means the runner does not update that
timeout on the WebDriver session.
Implementations§
Source§impl BrowserTimeouts
impl BrowserTimeouts
Sourcepub fn builder() -> BrowserTimeoutsBuilder<((), (), ())>
pub fn builder() -> BrowserTimeoutsBuilder<((), (), ())>
Create a builder for building BrowserTimeouts.
On the builder, call .script_timeout(...)(optional), .page_load_timeout(...)(optional), .implicit_wait_timeout(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of BrowserTimeouts.
Source§impl BrowserTimeouts
impl BrowserTimeouts
Sourcepub const fn script_timeout(self) -> Option<Duration>
pub const fn script_timeout(self) -> Option<Duration>
Maximum time WebDriver waits for asynchronous script execution.
Returning None means this timeout is not updated.
Sourcepub const fn page_load_timeout(self) -> Option<Duration>
pub const fn page_load_timeout(self) -> Option<Duration>
Maximum time WebDriver waits for page navigation to finish loading.
Returning None means this timeout is not updated.
Sourcepub const fn implicit_wait_timeout(self) -> Option<Duration>
pub const fn implicit_wait_timeout(self) -> Option<Duration>
Maximum time WebDriver waits while locating elements through raw element lookup commands.
Returning None means this timeout is not updated.
Trait Implementations§
Source§impl Clone for BrowserTimeouts
impl Clone for BrowserTimeouts
Source§fn clone(&self) -> BrowserTimeouts
fn clone(&self) -> BrowserTimeouts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BrowserTimeouts
impl Debug for BrowserTimeouts
Source§impl Default for BrowserTimeouts
impl Default for BrowserTimeouts
Source§fn default() -> BrowserTimeouts
fn default() -> BrowserTimeouts
Source§impl Hash for BrowserTimeouts
impl Hash for BrowserTimeouts
Source§impl PartialEq for BrowserTimeouts
impl PartialEq for BrowserTimeouts
Source§fn eq(&self, other: &BrowserTimeouts) -> bool
fn eq(&self, other: &BrowserTimeouts) -> bool
self and other values to be equal, and is used by ==.impl Copy for BrowserTimeouts
impl Eq for BrowserTimeouts
impl StructuralPartialEq for BrowserTimeouts
Auto Trait Implementations§
impl Freeze for BrowserTimeouts
impl RefUnwindSafe for BrowserTimeouts
impl Send for BrowserTimeouts
impl Sync for BrowserTimeouts
impl Unpin for BrowserTimeouts
impl UnsafeUnpin for BrowserTimeouts
impl UnwindSafe for BrowserTimeouts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.