Skip to content
Discussion options

You must be logged in to vote

Here are two different scripts that can do that.

First one is with regular CDP Mode:

from seleniumbase import SB

with SB(uc=True, test=True) as sb:
    url = "https://worldathletics.org/athletes/united-states/cole-hocker-14905834"
    sb.activate_cdp_mode(url)
    sb.sleep(2)
    sb.open("https://worldathletics.org/athletes/united-states/cole-hocker-14905834")
    sb.click("button#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll")
    sb.click('button[value="STATISTICS"]')
    sb.click('button[value="Results"]')
    sb.sleep(1)
    sb.click('[class*="athletesSelectInput_athletesSelectContainer"]')
    sb.sleep(1)
    sb.click('[class*="athletesSelectInput__menu-list"] div:contains("…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by mdmintz
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