MCPcopy Index your code
hub / github.com/seleniumbase/SeleniumBase / get_mfa_code

Method get_mfa_code

seleniumbase/fixtures/base_case.py:9026–9030  ·  view source on GitHub ↗

Same as get_totp_code() and get_google_auth_password(). Returns a time-based one-time password based on the Google Authenticator algorithm for multi-factor authentication.

(self, totp_key=None)

Source from the content-addressed store, hash-verified

9024 return driver_version
9025
9026 def get_mfa_code(self, totp_key=None):
9027 """Same as get_totp_code() and get_google_auth_password().
9028 Returns a time-based one-time password based on the Google
9029 Authenticator algorithm for multi-factor authentication."""
9030 return shared_utils.get_mfa_code(totp_key)
9031
9032 def enter_mfa_code(
9033 self, selector, totp_key=None, by="css selector", timeout=None

Callers 4

enter_mfa_codeMethod · 0.95
get_google_auth_codeMethod · 0.95
get_totp_codeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected