0

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'))
JohnsonR
  • 9
  • 4

1 Answers1

0
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/

PDHide
  • 18,113
  • 2
  • 31
  • 46