Skip to content

Commit

Permalink
Add types to set_window_position parameters (#13786)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtheturtle committed Apr 10, 2024
1 parent 2b59996 commit 9f8e0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ def get_window_size(self, windowHandle: str = "current") -> dict:

return {k: size[k] for k in ("width", "height")}

def set_window_position(self, x, y, windowHandle: str = "current") -> dict:
def set_window_position(self, x: float, y: float, windowHandle: str = "current") -> dict:
"""Sets the x,y position of the current window. (window.moveTo)
:Args:
Expand Down

0 comments on commit 9f8e0b8

Please sign in to comment.