How to use authenticated proxy in selenium chromedriver?

前端 未结 7 870
挽巷
挽巷 2020-12-14 08:10

After searching for many hours I am starting to think this is impossible.

I need to run Chrome through selenium using different authenticated (not public) proxy\'s f

7条回答
  •  庸人自扰
    2020-12-14 08:51

    THis is a temporary solution might work in initial state: Code is in Python: Download the plugin first from chrome plugin store : Proxy-Auto-Auth_v2.0.crx

            options = webdriver.ChromeOptions()
            options.add_extension("./Proxy-Auto-Auth_v2.0.crx")) #this will provide you a window to enter user name and proxy 
            driver = webdriver.Remote(command_executor=selenium_server,desired_capabilities=options.to_capabilities())
    
            or 
    
            driver = webdriver.Chrome(chrome_options=options)
    

提交回复
热议问题