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'))
2

1 Answer 1

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/

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.