Send Keys to the Alert. Args: keysToSend: The text to be sent to Alert.
(self, keysToSend: str)
| 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}) |