I'm trying to run selenium-wire with Firefox in headless mode:
from seleniumwire import webdriver
options = {
'proxy': {
'http': 'http://user:password@ip:port',
'https': 'https://user:password@ip:port',
'no_proxy': 'localhost,127.0.0.1,dev_server:8080'
},
'headless': True
}
driver = webdriver.Firefox(seleniumwire_options=options)
driver.get("http://adream.es")
It's not making any effect because the browser window still pops up :(
In selenium normally I was running it like:
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
options = Options()
options.headless = True
driver = webdriver.Firefox(options=options)
driver.get("http://adream.es")
How can I run it headless?