diff --git a/src/fixtures/conftest.py b/src/fixtures/conftest.py index 046f4a8ff..e4cc71b13 100644 --- a/src/fixtures/conftest.py +++ b/src/fixtures/conftest.py @@ -959,3 +959,15 @@ def django_db_setup(django_db_setup, django_db_blocker): # noqa with django_db_blocker.unblock(): denorms.install_triggers() + + +# https://github.com/pytest-dev/pytest-splinter/issues/158 +# AttributeError: module 'splinter.driver.webdriver.firefox' has no attribute 'WebDriverElement' + + +from pytest_splinter.webdriver_patches import patch_webdriver + + +@pytest.fixture(scope="session") +def browser_patches(): + patch_webdriver()