Same as wait_for_and_switch_to_alert(), but smaller default T_O
(self, timeout=None)
| 11425 | return alert |
| 11426 | |
| 11427 | def switch_to_alert(self, timeout=None): |
| 11428 | """Same as wait_for_and_switch_to_alert(), but smaller default T_O""" |
| 11429 | self.__check_scope() |
| 11430 | if not timeout: |
| 11431 | timeout = settings.SMALL_TIMEOUT |
| 11432 | if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT: |
| 11433 | timeout = self.__get_new_timeout(timeout) |
| 11434 | return page_actions.wait_for_and_switch_to_alert(self.driver, timeout) |
| 11435 | |
| 11436 | ############ |
| 11437 |