Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Update README.rst #714

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,25 @@ Then just instantiate the webdriver as you would if you were using Selenium dire
seleniumwire_options={...}
)

By default, the webdriver will not be in headless mode. To run it in headless mode, you can do the following:

.. code:: python

from seleniumwire.webdriver import Chrome
from selenium.webdriver.chrome.options import Options

# to run the browser in headless mode, add the following argument:
chrome_options = Options()
chrome_options.add_argument("--headless")

# add your your selenium-wire Options here ex. proxy
sw_options = {}


driver = Chrome(seleniumwire_options=sw_options, chrome_options=chrome_options)



.. _`own options`: #all-options

Note that for sub-packages of ``webdriver``, you should continue to import these directly from ``selenium``. For example, to import ``WebDriverWait``:
Expand Down