We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
screenshot_as_png
1 parent 459c2dd commit 780ae58Copy full SHA for 780ae58
1 file changed
py/selenium/webdriver/remote/webelement.py
@@ -660,7 +660,7 @@ def screenshot_as_base64(self) -> str:
660
return self._execute(Command.ELEMENT_SCREENSHOT)['value']
661
662
@property
663
- def screenshot_as_png(self) -> str:
+ def screenshot_as_png(self) -> bytes:
664
"""
665
Gets the screenshot of the current element as a binary data.
666
0 commit comments