Closed Ali-Flt closed 2 months ago
Duplicate of https://stackoverflow.com/a/77578982/7058266
Here's the script for that:
from seleniumbase import SB
with SB(uc=True) as sb:
sb.driver.uc_open_with_reconnect(
"https://visa.vfsglobal.com/are/en/fra/login",
reconnect_time=12
)
That page has a long initial load, so you need to use uc_open_with_reconnect()
with a longer reconnect_time
so that the page finishes loading before the driver reconnects. It's one of the methods covered in the UC Mode YouTube video about it: https://www.youtube.com/watch?v=5dMFI3e85ig
On some forms where clicking the checkbox is required, add these lines into the with
block:
sb.driver.uc_switch_to_frame("iframe")
sb.driver.uc_click("span.mark")
Hey, I am trying to get passed the cloudflare human check of this link: https://visa.vfsglobal.com/IRN/en/fra/login I tried using this example from the documents:
but it got detected. Any tips? Or is it just not possible to pass the cloudflare test of this website with the current version of seleniumbase?
Thanks