pub struct WebDriverSession {
pub(crate) id: Uuid,
pub(crate) browsing_context_id: BrowsingContextId,
pub(crate) top_level_browsing_context_id: TopLevelBrowsingContextId,
pub(crate) window_handles: HashMap<TopLevelBrowsingContextId, String>,
pub(crate) script_timeout: Option<u64>,
pub(crate) load_timeout: u64,
pub(crate) implicit_wait_timeout: u64,
pub(crate) page_loading_strategy: String,
pub(crate) strict_file_interactability: bool,
pub(crate) unhandled_prompt_behavior: String,
pub(crate) input_state_table: HashMap<String, InputSourceState>,
pub(crate) input_cancel_list: Vec<ActionSequence>,
}
Expand description
Represents the current WebDriver session and holds relevant session state.
Fields§
§id: Uuid
§browsing_context_id: BrowsingContextId
§top_level_browsing_context_id: TopLevelBrowsingContextId
§window_handles: HashMap<TopLevelBrowsingContextId, String>
§script_timeout: Option<u64>
Time to wait for injected scripts to run before interrupting them. A None
value
specifies that the script should run indefinitely.
load_timeout: u64
Time to wait for a page to finish loading upon navigation.
implicit_wait_timeout: u64
Time to wait for the element location strategy when retrieving elements, and when waiting for an element to become interactable.
page_loading_strategy: String
§strict_file_interactability: bool
§unhandled_prompt_behavior: String
§input_state_table: HashMap<String, InputSourceState>
§input_cancel_list: Vec<ActionSequence>
Implementations§
source§impl WebDriverSession
impl WebDriverSession
pub fn new( browsing_context_id: BrowsingContextId, top_level_browsing_context_id: TopLevelBrowsingContextId, ) -> WebDriverSession
Auto Trait Implementations§
impl Freeze for WebDriverSession
impl RefUnwindSafe for WebDriverSession
impl Send for WebDriverSession
impl Sync for WebDriverSession
impl Unpin for WebDriverSession
impl UnwindSafe for WebDriverSession
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert