IE proxy settings using python and webdriver

I am trying to set proxy settings for Internet Explorer using selenium using python.

This is what I did ::

from selenium import webdriver PROXY = "localhost:8080" webdriver.DesiredCapabilities.INTERNETEXPLORER['proxy'] = { "httpProxy":PROXY, "ftpProxy":PROXY, "sslProxy":PROXY, "noProxy":None, "proxyType":"MANUAL", "class":"org.openqa.selenium.Proxy", "autodetect":False } driver = webdriver.Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.INTERNETEXPLORER) 

The above snippet is presented in the documentation, but when I used it to install a proxy server, I got an exception that :: target machine actively rejected the connection.

Can someone help me in setting up a proxy server for IE.

My goal: I have to install the proxy server in IE, open IE and check some things, and then return IE back to normal.

I am using python and selenium webdriver. How can I achieve this using them?

+4
source share

Source: https://habr.com/ru/post/1495680/


All Articles