pub fn screenshot_as_png(&self) -> WebDriverResult<Vec<u8>> {
        let s = self.screenshot_as_base64()?;
        let bytes: Vec<u8> = decode(&s)?;
        Ok(bytes)
    }
/// Take a screenshot of this WebElement and return it as PNG bytes.
Take a screenshot of this WebElement and return it as PNG bytes.
Take a screenshot of this WebElement and return it as PNG bytes .
pub fn screenshot_as_png(&self) -> WebDriverResult<Vec<u8>> {
        let s = self.screenshot_as_base64()?;
        let bytes: Vec<u8> = decode(&s)?;
        Ok(bytes)
    }
pub fn screenshot_as_png ( & self ) -> WebDriverResult < Vec < u8 > > { let s = self . screenshot_as_base64 ( ) ? ; let bytes : Vec < u8 > = decode ( & s ) ? ; Ok ( bytes ) }
Take a screenshot of this WebElement and return it as PNG bytes.
Take a screenshot of this WebElement and return it as PNG bytes .
&self
&self