1

In Java i am able to set AutoConfigUrl like mentioned below,

how to do the same in python ?

Proxy proxy = new Proxy();
              
proxy.setProxyAutoconfigUrl("http://wpad/wpad.dat");
PSR
  • 249
  • 1
  • 10

1 Answers1

0

Using Python and Selenium to set the proxyAutoconfigUrl you can use the following solution:

from selenium.webdriver.common.proxy import Proxy


prox = Proxy()
prox.proxyAutoconfigUrl = "http://wpad/wpad.dat"
capabilities = webdriver.DesiredCapabilities.CHROME.copy()
prox.add_to_capabilities(capabilities)
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352