MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / switch_to_alert

Method switch_to_alert

seleniumbase/fixtures/base_case.py:11427–11434  ·  view source on GitHub ↗

Same as wait_for_and_switch_to_alert(), but smaller default T_O

(self, timeout=None)

Source from the content-addressed store, hash-verified

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

Callers 12

passer_à_alerteMethod · 0.80
passa_al_avvisoMethod · 0.80
cambiar_a_alertaMethod · 0.80
경고로_전환Method · 0.80
切换到警报Method · 0.80
mudar_para_alertaMethod · 0.80
test_alertsMethod · 0.80
test_alertsMethod · 0.80

Calls 3

__check_scopeMethod · 0.95
__get_new_timeoutMethod · 0.95

Tested by 3

test_alertsMethod · 0.64
test_alertsMethod · 0.64