Skip to content

Commit e69feee

Browse files
authored
[py]: Fix checking window handles for current
1 parent c620c37 commit e69feee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def get_window_position(self, windowHandle="current") -> dict:
907907

908908
return {k: position[k] for k in ("x", "y")}
909909

910-
def _check_if_window_handle_is_current(windowHandle: str) -> None:
910+
def _check_if_window_handle_is_current(self, windowHandle: str) -> None:
911911
"""Warns if the window handle is not equal to `current`."""
912912
if windowHandle != "current":
913913
warnings.warn("Only 'current' window is supported for W3C compatible browsers.", stacklevel=2)

0 commit comments

Comments
 (0)