def screenshot(self):
        """
        Take screenshot with session check

        Returns:
            PIL.Image
        """
        b64data = self.http.get('/screenshot').value
        raw_data = base64.b64decode(b64data)
        from PIL import Image
        buff = io.BytesIO(raw_data)
        return Image.open(buff)
def screenshot ( self ) : b64data = self . http . get ( '/screenshot' ) . value raw_data = base64 . b64decode ( b64data ) from PIL import Image buff = io . BytesIO ( raw_data ) return Image . open ( buff )
Take screenshot with session check

        Returns:
            PIL.Image