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)
CLICK HERE to find out more related problems solutions.