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 6d0b5e5 commit b90b05dCopy full SHA for b90b05d
examples/raw_mfa_login.py
@@ -0,0 +1,12 @@
1
+from seleniumbase import sb_cdp
2
+
3
+url = "https://seleniumbase.io/realworld/login"
4
+sb = sb_cdp.Chrome(url)
5
+sb.type("#username", "demo_user")
6
+sb.type("#password", "secret_pass")
7
+sb.enter_mfa_code("#totpcode", "GAXG2MTEOR3DMMDG")
8
+sb.assert_text("Welcome!", "h1")
9
+sb.click('a:contains("This Page")')
10
+sb.highlight("h1")
11
+sb.highlight("img#image1")
12
+sb.driver.stop()
0 commit comments