We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f7940 commit 33182eeCopy full SHA for 33182ee
examples/test_mfa_login.py
@@ -6,9 +6,7 @@ def test_mfa_login(self):
6
self.open("https://seleniumbase.io/realworld/login")
7
self.type("#username", "demo_user")
8
self.type("#password", "secret_pass")
9
- totp_code = self.get_totp_code("GAXG2MTEOR3DMMDG")
10
- self.type("#totpcode", totp_code)
11
- self.click("#log-in")
+ self.enter_mfa_code("#totpcode", "GAXG2MTEOR3DMMDG")
12
self.highlight("img#image1")
13
self.assert_text("Welcome!", "h1")
14
self.save_screenshot_to_logs()
0 commit comments