wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.9k stars 254 forks source link

How to turn seleniumwire headless? #244

Closed Avnsx closed 3 years ago

Avnsx commented 3 years ago

It's compleltly missing in the docs, i figured it out after a couple minutes, but it would be no harm to just add it into the docs

wkeeling commented 3 years ago

Thanks for pointing this out. The headless property isn't specific to Selenium Wire - it's a Selenium webdriver option that can be passed to the driver with selenium.webdriver.chrome.options.Options and selenium.webdriver.firefox.options.Options for Chrome and Firefox respectively.

Since running in headless mode seems to be a common use-case for Selenium Wire, I've now mentioned it in the README and linked to the relevant Selenium API docs.