diff --git a/webdriver/tests/classic/perform_actions/conftest.py b/webdriver/tests/classic/perform_actions/conftest.py index 0694cce494f25d..bb134a4eb1b942 100644 --- a/webdriver/tests/classic/perform_actions/conftest.py +++ b/webdriver/tests/classic/perform_actions/conftest.py @@ -1,4 +1,5 @@ import pytest +import time from webdriver.error import NoSuchWindowException @@ -59,10 +60,21 @@ def wheel_chain(session): @pytest.fixture(autouse=True) -def release_actions(session, request): +def release_actions(session): # release all actions after each test # equivalent to a teardown_function, but with access to session fixture - request.addfinalizer(session.actions.release) + yield + + # Avoid frequent intermittent failures on Mozilla Windows CI with + # perform_actions tests: + # https://bugzilla.mozilla.org/show_bug.cgi?id=1879556 + if ( + session.capabilities["browserName"] == "firefox" + and session.capabilities["platformName"] == "windows" + ): + time.sleep(0.1) + + session.actions.release() @pytest.fixture diff --git a/webdriver/tests/support/fixtures.py b/webdriver/tests/support/fixtures.py index 7468e8b251f8f6..5ab020ad0087ff 100644 --- a/webdriver/tests/support/fixtures.py +++ b/webdriver/tests/support/fixtures.py @@ -64,7 +64,7 @@ def full_configuration(): host - WebDriver server host. port - WebDriver server port. - capabilites - Capabilites passed when creating the WebDriver session + capabilities - Capabilities passed when creating the WebDriver session timeout_multiplier - Multiplier for timeout values webdriver - Dict with keys `binary`: path to webdriver binary, and `args`: Additional command line arguments passed to the webdriver