pub struct Chromedriver { /* private fields */ }Expand description
A wrapper struct for a spawned chromedriver process. Keep this alive until your test is complete.
Automatically terminates the spawned chromedriver process when dropped.
You can always manually call terminate, but the on-drop automation makes it much safer in
quickly panicking contexts, such as tests.
Implementations§
Source§impl Chromedriver
impl Chromedriver
pub async fn run( version: VersionRequest, port: PortRequest, ) -> Result<Chromedriver>
pub async fn run_latest_stable() -> Result<Chromedriver>
pub async fn run_latest_beta() -> Result<Chromedriver>
pub async fn run_latest_dev() -> Result<Chromedriver>
pub async fn run_latest_canary() -> Result<Chromedriver>
pub async fn terminate(self) -> Result<ExitStatus, TerminationError>
pub async fn terminate_with_timeouts( self, interrupt_timeout: Duration, terminate_timeout: Duration, ) -> Result<ExitStatus, TerminationError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chromedriver
impl !RefUnwindSafe for Chromedriver
impl Send for Chromedriver
impl Sync for Chromedriver
impl Unpin for Chromedriver
impl !UnwindSafe for Chromedriver
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