diff --git a/README.rst b/README.rst index b0870ab..f864171 100644 --- a/README.rst +++ b/README.rst @@ -147,6 +147,26 @@ Fixtures """ return {"service_log_path": Path("/log/directory/geckodriver.log")} +The snippet below configures Chrome to ignore certificate errors and sets a specific window size + +.. code-block:: python + + import pytest + from selenium import webdriver + + @pytest.fixture(scope='session') + def splinter_driver_kwargs(): + """Override Chrome WebDriver options""" + chrome_options = webdriver.ChromeOptions() + + # List of Chromium Command Line Switches + # https://peter.sh/experiments/chromium-command-line-switches/ + chrome_options.add_argument("--window-size=1440,1200") + chrome_options.add_argument("--ignore-ssl-errors=yes") + chrome_options.add_argument("--ignore-certificate-errors") + + return {"options": chrome_options} + * splinter_window_size Size of the browser window on browser initialization. Tuple in form (, ). Default is (1366, 768)