Selenium doesn't load the page if it gets redirected before the page loads. The error is Message: unknown error: net::ERR_SOCKS_CONNECTION_FAILED
Here is a simple selenium code
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://loginrequired.com/')
Selenium wouldn't load the page, because the website immideately redirects us to the other page. How do I let Selenium to ignore the redirection and follow all next steps on the redirected page? This website is takes for the example purpose, so the answer would not be simply to try to get to the redirected page immideatly.
source https://stackoverflow.com/questions/76607448/selenium-allow-redirect
Comments
Post a Comment