Can´t find element in uc-mode? #3497
-
Hello - i try to use uc-mode to open a website, enter some text and press a button using the following code -
But i get this error message:
Why can´t the input-field not found / the button not pressed? |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Feb 9, 2025
Replies: 2 comments
-
This script worked for me: from seleniumbase import SB
with SB(uc=True) as sb:
url = "https://www.textbooks.com/sell-textbooks.php"
wISBN = "1337613924"
sb.activate_cdp_mode(url)
sb.type('input[id="dHTxt"]', wISBN)
sb.click('button[id="btnMainSearch"]')
sb.sleep(5) Note that CDP Mode is the successor to regular UC Mode. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mdmintz
-
Thanks a lot again for the fast help - i will switch my activites to CDP. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script worked for me:
Note that CDP Mode is the successor to regular UC Mode.