From 1b06b13b98e1720cf17e5a4ec80fb7106f7d5030 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Tue, 26 Mar 2024 21:11:27 +0000 Subject: [PATCH] Add type to parameter of webelement.WebElement.send_keys (#13492) * Add type to parameter of webelement.WebElement.send_keys * Use 'str' as the value type for send_keys --- py/selenium/webdriver/remote/webelement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/remote/webelement.py b/py/selenium/webdriver/remote/webelement.py index d5752ca678180..8f26b26a4b0ee 100644 --- a/py/selenium/webdriver/remote/webelement.py +++ b/py/selenium/webdriver/remote/webelement.py @@ -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: