Skip to content

Commit 780ae58

Browse files
authored
[py] fix return type hints for screenshot_as_png (#10626)
1 parent 459c2dd commit 780ae58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎py/selenium/webdriver/remote/webelement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def screenshot_as_base64(self) -> str:
660660
return self._execute(Command.ELEMENT_SCREENSHOT)['value']
661661

662662
@property
663-
def screenshot_as_png(self) -> str:
663+
def screenshot_as_png(self) -> bytes:
664664
"""
665665
Gets the screenshot of the current element as a binary data.
666666

0 commit comments

Comments
 (0)