1

Is there a way to change the proxy ip address for your Selenium Chrome web driver without closing the browser and just by reloading?

I know that you can add a proxy by running this but how can you change it?:

from selenium import webdriver

PROXY = "23.23.23.23:3128" # IP:PORT or HOST:PORT

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' % PROXY)

chrome = webdriver.Chrome(options=chrome_options)

0 Answers0