the code:
cap = DesiredCapabilities.HTMLUNITWITHJS
driver = webdriver.Remote("http://localhost:%i/wd/hub" % HTMLUNIT_PORT, cap)
tried doing this before initializing:
...
cap['proxy']['proxyType'] = 'manual'
cap['socksProxy'] = ip + ':' + str(port)
...
but it seems it didn't work - the IP remained unchanged.
How can I use socks proxy in webdriver AND htmlunit?