I am writing one script that will have to test sites using selenium. Selenium needs to be able to work with multiple open proxy servers.
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
hostname='165.154.235.188'
port='80'
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' % hostname + ":" + port)
driver = webdriver.Chrome(chrome_options=chrome_options)
driver.get('https://2ip.ru')
I was unable to implement this, when opening the browser writes: enter image description here
Here is what it says in the console: enter image description here
Does anyone know how to make it work?