SeleniumBase: I can not bypass Cloudfare captcha

My code is:

from seleniumbase import Driver

driver = Driver(uc=True)
driver.open("https://www.nowsecure.nl")

I have to click the checkbox and it stucks there again and again.

I am using new mobile IPs and tested the same website with a regular Chrome browser started without python/Seleniumbase and it is working.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 27 (11 by maintainers)

Most upvoted comments

CF still passing.

Do you mean SB is bypassing CF detection? (Eg. Not Detected)

Yes

This works. Thanks:

if page_actions.is_element_visible(driver,'iframe[title*="challenge"]'):
    page_actions.switch_to_frame(driver,'iframe[title*="challenge"]')
    page_actions.wait_for_element(driver, '.ctp-label').click()
    driver.switch_to.default_content()

driver.open() maps to driver.get() now, to avoid confusion. (version 4.17.14) In UC Mode driver.open() and driver.get() are special. The old non-UC get() method is now default_get().