pub struct Session { /* private fields */ }Expand description
A browser session. Used to control the browser.
When using thirtyfour (feature), this has a Deref impl to thirtyfour::WebDriver, so this
session can be seen as the driver.
Methods from Deref<Target = WebDriver>§
Sourcepub fn clone_with_config(&self, config: WebDriverConfig) -> WebDriver
pub fn clone_with_config(&self, config: WebDriverConfig) -> WebDriver
Clone this WebDriver keeping the session handle, but supplying a new WebDriverConfig.
This still uses the same underlying client, and still controls the same browser
session, but uses a different WebDriverConfig for this instance.
This is useful in cases where you want to specify a custom poller configuration (or
some other configuration option) for only one instance of WebDriver.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl !UnwindSafe for Session
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