diff --git a/biweeklybudget/tests/conftest.py b/biweeklybudget/tests/conftest.py index 5418d8a5..64e4a93d 100644 --- a/biweeklybudget/tests/conftest.py +++ b/biweeklybudget/tests/conftest.py @@ -63,6 +63,7 @@ import pytest_selenium.pytest_selenium from selenium.webdriver.support.event_firing_webdriver import \ EventFiringWebDriver + from selenium.webdriver.chrome.webdriver import WebDriver as ChromeWD HAVE_PYTEST_SELENIUM = True except ImportError: HAVE_PYTEST_SELENIUM = False @@ -266,7 +267,13 @@ def driver(request, driver_class, driver_kwargs): out and replaced it with the ``get_driver_for_class()`` function, which is wrapped in the retrying package's ``@retry`` decorator. """ - driver = get_driver_for_class(driver_class, driver_kwargs) + kwargs = driver_kwargs + if driver_class == ChromeWD: + kwargs['desired_capabilities']['loggingPrefs'] = { + 'browser': 'ALL' + } + logger.error('Chrome WebDriver - driver_kwargs=%s', kwargs) + driver = get_driver_for_class(driver_class, kwargs) event_listener = request.config.getoption('event_listener') if event_listener is not None: