Open NickiHua opened 2 months ago
Checkbox is inside an "iframe", so you need to switch to it first. Unfortunately, it'll probably be useless, but you could do something like this:
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = ...
wait = WebDriverWait(driver, 10)
iframe = wait.until(EC.presence_of_element_located((By.TAG_NAME, "iframe")))
driver.switch_to.frame(iframe)
checkbox = wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, 'input[type="checkbox"]')))
checkbox.click()
The page will be updated automatically to load the cloudflare click section.
The html for this click is![image](https://github.com/ultrafunkamsterdam/undetected-chromedriver/assets/14970442/68ccc40d-c609-4d4a-b8ab-16b2ef0333e6)
The code I use is
But the page_source is never showing the click part of cloudflare. The url i am using is "http://www.javlibrary.com/cn/" (NSFW!!) Anyone knows how to get the right page_source and make UC to click the button to pass?