pub enum Engine {
Firefox,
Chrome,
}Expand description
A browser this suite knows how to drive.
Variants§
Firefox
Firefox, driven through geckodriver.
Chrome
Chrome, driven through chromedriver, which is fetched to match the
installed Chrome when none is on the PATH.
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn capabilities(self, headed: bool) -> Result<Capabilities>
pub fn capabilities(self, headed: bool) -> Result<Capabilities>
The capabilities a session is opened with, headless unless asked otherwise.
Sourcepub fn browser_present(self) -> bool
pub fn browser_present(self) -> bool
Whether this engine’s browser is here, whether or not its driver is.
Sourcepub fn detect() -> Option<Engine>
pub fn detect() -> Option<Engine>
The first engine whose driver this machine has — failing that, the first whose browser it has, which a fetch can finish.
Sourcepub fn require() -> Result<Engine>
pub fn require() -> Result<Engine>
Engine::detect, or an error naming what would have satisfied it.
Trait Implementations§
impl Copy for Engine
impl Eq for Engine
impl StructuralPartialEq for Engine
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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> 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.