Skip to content
Discussion options

You must be logged in to vote

You might be mixing up the Syntax Formats:

This script does what you're looking for:

from seleniumbase import SB

with SB(uc=True, external_pdf=True) as sb:
    url = "https://dm.epiq11.com/case/pinstripes/dockets"
    sb.activate_cdp_mode(url)
    sb.sleep(5)
    sb.wait_for_any_of_elements_present('[class="document-card document-card-docket"]', timeout=30)
    selector='div.main-content--no-padding > div:nth-child(9) div[class="document-card-docket__document-icon document-card-docket__document-icon--mobile"] div a[target="_blank'
    sb.click(selector)
    sb.sleep(5)

If you want to download files, that takes place outside the browser, so you can't use Pure CDP Mode for that, which is f…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ScottCov
Comment options

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