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

Method __get_new_timeout

seleniumbase/fixtures/base_case.py:11916–11927  ·  view source on GitHub ↗

When using --timeout_multiplier=#.#

(self, timeout)

Source from the content-addressed store, hash-verified

11914 ############
11915
11916 def __get_new_timeout(self, timeout):
11917 """When using --timeout_multiplier=#.#"""
11918 self.__check_scope()
11919 try:
11920 timeout_multiplier = float(self.timeout_multiplier)
11921 if timeout_multiplier <= 0.5:
11922 timeout_multiplier = 0.5
11923 timeout = int(math.ceil(timeout_multiplier * timeout))
11924 return timeout
11925 except Exception:
11926 # Wrong data type for timeout_multiplier (expecting int or float)
11927 return timeout
11928
11929 ############
11930

Callers 15

clickMethod · 0.95
slow_clickMethod · 0.95
double_clickMethod · 0.95
context_clickMethod · 0.95
click_chainMethod · 0.95
update_textMethod · 0.95
add_textMethod · 0.95
typeMethod · 0.95
send_keysMethod · 0.95
clearMethod · 0.95
focusMethod · 0.95
click_link_textMethod · 0.95

Calls 1

__check_scopeMethod · 0.95

Tested by

no test coverage detected