Skip to content

Commit 91fc609

Browse files
committed
Add windowHandle parameter description to set_window_size and set_window_position methods
1 parent a93c663 commit 91fc609

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ def set_window_size(self, width, height, windowHandle: str = "current") -> None:
945945
Args:
946946
width: The width in pixels to set the window to.
947947
height: The height in pixels to set the window to.
948+
windowHandle: The handle of the window to resize. Default is "current".
948949
949950
Example:
950951
>>> driver.set_window_size(800, 600)
@@ -972,6 +973,7 @@ def set_window_position(self, x: float, y: float, windowHandle: str = "current")
972973
Args:
973974
x: The x-coordinate in pixels to set the window position.
974975
y: The y-coordinate in pixels to set the window position.
976+
windowHandle: The handle of the window to reposition. Default is "current".
975977
976978
Example:
977979
>>> driver.set_window_position(0, 0)

0 commit comments

Comments
 (0)