[Python] undetected_chromedriver and cloudflare issues if there are any...

Discussão em 'Python' iniciado por Stack, Fevereiro 3, 2025.

  1. Stack

    Stack Membro Participativo

    Hi I am trying to use import undetected_chromedriver as uc:

    this works clicking a button:

    driver.execute_script("arguments[0].focus();", username_field)
    WebDriverWait(driver, 100).until(EC.element_to_be_clickable(("id","ctl00_lower_panel_btnContinue"))).click()


    This does not:

    driver.execute_script("arguments[0].focus();", username_field)
    WebDriverWait(driver, 100).until(EC.element_to_be_clickable(("id","ctl00_lower_panel_btnContinue"))).click()

    WebDriverWait(driver, 100).until(EC.element_to_be_clickable(("id","ctl00_lower_panel_btnContinue"))).click()
    ## here is the cloudflare
    WebDriverWait(driver, 100).until(EC.element_to_be_clickable(("id", "ctl00_lower_panel_btnContinue"))).click()


    element = WebDriverWait(driver, 10).until(EC.presence_of_element_located(("xpath", '//button[text()="Yes" and @class="ui-button ui-corner-all ui-widget"]')))


    element1 = WebDriverWait(driver, 10).until(EC.element_to_be_clickable(("xpath", '//button[text()="Yes" and @class="ui-button ui-corner-all ui-widget"]')))
    yes_driver3 = driver.find_element("xpath", '//button[text()="Yes" and @class="ui-button ui-corner-all ui-widget"]')
    yes_driver3.click()


    is there some process to run undetected_chromedriver commands after encountering cloudflare?

    Continue reading...

Compartilhe esta Página