MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / send_keys

Method send_keys

py/selenium/webdriver/common/alert.py:72–78  ·  view source on GitHub ↗

Send Keys to the Alert. Args: keysToSend: The text to be sent to Alert.

(self, keysToSend: str)

Source from the content-addressed store, hash-verified

70 self.driver.execute(Command.W3C_ACCEPT_ALERT)
71
72 def send_keys(self, keysToSend: str) -> None:
73 """Send Keys to the Alert.
74
75 Args:
76 keysToSend: The text to be sent to Alert.
77 """
78 self.driver.execute(Command.W3C_SET_ALERT_VALUE, {"value": keys_to_typing(keysToSend), "text": keysToSend})

Calls 2

keys_to_typingFunction · 0.90
executeMethod · 0.65