最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - undetected_chromedriver and cloudflare issues if there are any undetected_chromedriver commands after the cloudflare ch

programmeradmin0浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论