-
I am trying to create a script that logs in to Udemy, But whenever I try to send some keys the module doesn't really find the element. Here's my approach.
Also, I didn't find how to use Xpaths in any of the docs or examples. |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Dec 15, 2023
Replies: 1 comment 2 replies
-
Here's a script to sign in to an existing Udemy account if you provide correct credentials: from seleniumbase import SB
with SB(uc=True) as sb:
sb.driver.get("https://www.udemy.com/")
sb.click('a[data-purpose="header-login"]')
sb.get_element('[name="email"]').send_keys("[email protected]")
sb.get_element('[name="password"]').send_keys("PassWord")
sb.click('button:contains("Log in")')
breakpoint() |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a script to sign in to an existing Udemy account if you provide correct credentials: