Replies: 1 comment 1 reply
-
| 
         Hi @jiwaCh - had any luck with this or found an alternative approach?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When accessing driverpracticaltest website was loading fine initially. After a while, it has now lead to Error 15.
My project itself is rather long and hence will be impractical to paste below, but the code below will suffice as a valid example:
user_agent = "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
driver = webdriver.Chrome(options=options, version_main=113)
driver.execute_cdp_cmd('Network.setUserAgentOverride', {"userAgent":user_agent })
driver.get("https://driverpracticaltest.dvsa.gov.uk/login")
When running the script, I get the error 15
But, what's more amazing is, when running the same script on another local machine. No error 15 - can browse normally. I suspect This is temporary and will get banned later after long use.
I have also tested the theory with rotating ip address, with and without user-agent and the same pattern follows.
Will running a script inside a rotating vm (different vm per day) be a solution?
update: I have tired the propose solution by #690 and #986 and as rightly pointed by #1210 it no longer works
Beta Was this translation helpful? Give feedback.
All reactions