Closed tomekozlowski closed 2 years ago
Thanks for raising this.
The headless option is a Chrome option not a Selenium Wire option - so you need to pass it via that route, e.g.
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
driver = webdriver.Chrome(
options=chrome_options,
seleniumwire_options=options
)
Many of the other options that you are passing (e.g. window size, detach, prefs) are also Chrome options and not Selenium Wire options so should be passed via the same route.
Some examples are here, here and a comprehensive list of all Chrome options here. You can find the Selenium Wire specific options here.
Thanks, ur a chad, I didn't know I could split and import my normal selenium options, alongside with seleniumwires' by using this.
driver = webdriver.Chrome(options=chrome_options, seleniumwire_options=options)
This solved the issue. Big thanks!
I've tried adding it everywhere, to no avail, any solutions?