-
Notifications
You must be signed in to change notification settings - Fork 777
Closed
Labels
Description
Right now it is not possible to type into a javascript prompt -- the only options are to confirm or cancel an alert.
I would like support for a keyword like "Insert into prompt" that would type into a prompt.
I did a quick prototype on my mac, and it seemed pretty easy to implement:
def insert_into_prompt(self, text): alert = None try: alert = self._current_browser().switch_to_alert() alert.send_keys(text) except WebDriverException: raise RuntimeError('There were no alerts')