-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
I had a working automation script using standard selenium that was working for some time until the target web site was upgraded causing my automation to trigger a slider Captcha.
even if I solve it manually, it still throws a block.
I transitioned script to seleniumbase, using uc mode and proxy with authorization with the same results as I was getting with standard selenium. I am able to login and navigate as necessary until i get to the page where the captcha kicks in. Proxy is definitely working because every time i run script it reports a different ip.
Here is code:
from seleniumbase import Driver
driver = Driver(uc=True, proxy=proxy, undetectable=True, )
driver.uc_open_with_reconnect(webSite, reconnect_time=10)
driver.sleep(10)
driver.type("#lgUserName", memberNumber)
driver.type("#lgPassword", password+"\n")
driver.click("#hovDiv")
driver.sleep(5)
driver.click('a:contains('+memberName+')')
driver.sleep(5)
timer = driver.get_text('#tt1_left > p > span.serverClock > span > b',by="css selector")
print(timer)
driver.click('a:contains("21")') ### this triggers Captcha
driver.sleep(5)
input()
driver.quit()
Any help is appreciated. I think i am going to love using Seleniumbase if I can get a solution
I can share web site and log in credentials as needed to help solve.