Accepts the alert available. Example: Alert(driver).accept() # Confirm a alert dialog.
(self)
| 62 | self.driver.execute(Command.W3C_DISMISS_ALERT) |
| 63 | |
| 64 | def accept(self) -> None: |
| 65 | """Accepts the alert available. |
| 66 | |
| 67 | Example: |
| 68 | Alert(driver).accept() # Confirm a alert dialog. |
| 69 | """ |
| 70 | self.driver.execute(Command.W3C_ACCEPT_ALERT) |
| 71 | |
| 72 | def send_keys(self, keysToSend: str) -> None: |
| 73 | """Send Keys to the Alert. |