pub fn screenshot(&self, path: &Path) -> WebDriverResult<()> {
        let png = self.screenshot_as_png()?;
        let mut file = File::create(path)?;
        file.write_all(&png)?;
        Ok(())
    }
/// Take a screenshot of this WebElement and write it to the specified
/// filename.
Take a screenshot of this WebElement and write it to the specified
filename.
Take a screenshot of this WebElement and write it to the specified filename .
pub fn screenshot(&self, path: &Path) -> WebDriverResult<()> {
        let png = self.screenshot_as_png()?;
        let mut file = File::create(path)?;
        file.write_all(&png)?;
        Ok(())
    }
pub fn screenshot ( & self , path : & Path ) -> WebDriverResult < ( ) > { let png = self . screenshot_as_png ( ) ? ; let mut file = File :: create ( path ) ? ; file . write_all ( & png ) ? ; Ok ( ( ) ) }
Take a screenshot of this WebElement and write it to the specified
filename.
Take a screenshot of this WebElement and write it to the specified filename .
&self
path
&Path
&self
path
&Path