Skip to content

Can´t find element in uc-mode? #3497

Closed Answered by mdmintz
Rapid1898-code asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants