Skip to content

Commit b90b05d

Browse files
committed
Update an example
1 parent 6d0b5e5 commit b90b05d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/raw_mfa_login.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)