I’m trying to access the website https://www.vdi.lt/Komandiruotes/EN_employer_SignIn.aspx using Selenium with Python. However, I keep getting stuck in a loop with the message:
www.vdi.lt
Verifying you are human. This may take a few seconds.
www.vdi.lt needs to review the security of your connection before proceeding.
Here is the code I’m using:
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
options.add_argument("--disable-blink-features=AutomationControlled")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
service = Service(ChromeDriverManager().install())
driver = webdriver.Chrome(service=service, options=options)
stealth(driver,
languages=["en-US", "en"],
vendor="Google Inc.",
platform="Win32",
webgl_vendor="Intel Inc.",
renderer="Intel Iris OpenGL Engine",
fix_hairline=True,
run_on_insecure_origins=False,
)
url = "https://www.vdi.lt/Komandiruotes/EN_employer_SignIn.aspx"
driver.get(url)```
I've tried various options like disabling headless mode, adding user-agent strings, and using different versions of ChromeDriver, but nothing seems to work. The page keeps looping on the "Verifying you are human" message.
Has anyone encountered this issue before? How can I bypass this verification loop using Selenium?