Answer the question
In order to leave comments, you need to log in
How to manage firefox extension in selenium?
Installed via selenium extension to use proxy, but I don't know how to connect now. Nobody knows how to manage extensions through selenium ?
Installed like this
firefox_binary = '/usr/bin/firefox-developer-edition'
driver = webdriver.Firefox(firefox_binary=firefox_binary)
driver.install_addon("/home/foxyproxy.xpi", temporary=True)
driver.close()
driver.quit()
Answer the question
In order to leave comments, you need to log in
Through selenium - no way.
Proxy with password can be used by installing selenium-wire
pip install selenium-wire
Use like this:
from seleniumwire import webdriver
options = {
'proxy': {
'http': 'http://username:[email protected]:port',
'https': 'https://username:[email protected]:port',
'no_proxy': 'localhost,127.0.0.1,dev_server:8080'
}
}
driver = webdriver.Firefox(seleniumwire_options=options)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question