@fluent<EOL><INDENT>def save_screenshot(self, filename, quietly = False):<DEDENT>
imgData = self.take_screenshot()<EOL>try:<EOL><INDENT>with open(filename, "<STR_LIT:wb>") as f:<EOL><INDENT>f.write(b64decode(imgData.encode('<STR_LIT:ascii>')))<EOL><DEDENT><DEDENT>except IOError as err:<EOL><INDENT>if not quietly:<EOL><INDENT>raise err<EOL><DEDENT><DEDENT>
Save the screenshot to local.

        Support:
            Android iOS Web(WebView)

        Args:
            filename(str): The path to save the image.
            quietly(bool): If True, omit the IOError when
                failed to save the image.

        Returns:
            WebElement Object.

        Raises:
            WebDriverException.
            IOError.