pub struct FirefoxTools {
pub handle: SessionHandle,
}
Fields§
§handle: SessionHandle
Implementations§
Source§impl FirefoxTools
impl FirefoxTools
Sourcepub fn new(handle: SessionHandle) -> Self
pub fn new(handle: SessionHandle) -> Self
Create a new FirefoxTools struct.
§Example:
use thirtyfour::extensions::addons::firefox::FirefoxTools;
let tools = FirefoxTools::new(driver.handle.clone());
Sourcepub async fn install_addon(
&self,
path: &str,
temporary: Option<bool>,
) -> WebDriverResult<()>
pub async fn install_addon( &self, path: &str, temporary: Option<bool>, ) -> WebDriverResult<()>
Install the specified firefox add-on.
Sourcepub async fn full_screenshot_as_png(&self) -> WebDriverResult<Vec<u8>>
pub async fn full_screenshot_as_png(&self) -> WebDriverResult<Vec<u8>>
Take a full-page screenshot of the current window and return it as PNG bytes.
Sourcepub async fn full_screenshot(&self, path: &Path) -> WebDriverResult<()>
pub async fn full_screenshot(&self, path: &Path) -> WebDriverResult<()>
Take a full-page screenshot of the current window and write it to the specified filename.
Trait Implementations§
Source§impl Clone for FirefoxTools
impl Clone for FirefoxTools
Source§fn clone(&self) -> FirefoxTools
fn clone(&self) -> FirefoxTools
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FirefoxTools
impl !RefUnwindSafe for FirefoxTools
impl Send for FirefoxTools
impl Sync for FirefoxTools
impl Unpin for FirefoxTools
impl !UnwindSafe for FirefoxTools
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