I have this code with Chrome, but I want the exact same code/function with Firefox. Any help is appreciated!
options.add_argument('--proxy-server={}'.format('server.address:8080'))
I have this code with Chrome, but I want the exact same code/function with Firefox. Any help is appreciated!
options.add_argument('--proxy-server={}'.format('server.address:8080'))
from selenium import webdriver
PROXY = "<HOST:PORT>"
webdriver.DesiredCapabilities.FIREFOX['proxy'] = {
"httpProxy": PROXY,
"ftpProxy": PROXY,
"sslProxy": PROXY,
"proxyType": "MANUAL",
}
driver = webdriver.Firefox();
driver.get("https://selenium.dev")
You have to use desiredCapability , the code is available in the selenium website itself.
https://www.selenium.dev/documentation/en/webdriver/http_proxies/