Skip to content

Commit

Permalink
Add type to parameter of webelement.WebElement.send_keys (#13492)
Browse files Browse the repository at this point in the history
* Add type to parameter of webelement.WebElement.send_keys

* Use 'str' as the value type for send_keys
  • Loading branch information
adamtheturtle authored Mar 26, 2024
1 parent 907b219 commit 1b06b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def is_enabled(self) -> bool:
"""Returns whether the element is enabled."""
return self._execute(Command.IS_ELEMENT_ENABLED)["value"]

def send_keys(self, *value) -> None:
def send_keys(self, *value: str) -> None:
"""Simulates typing into the element.
:Args:
Expand Down

0 comments on commit 1b06b13

Please sign in to comment.