diff --git a/testing/web-platform/tests/webdriver/tests/classic/new_session/create_alwaysMatch.py b/testing/web-platform/tests/webdriver/tests/classic/new_session/create_alwaysMatch.py index 64fd0a742565..7a7f007dabb3 100644 --- a/testing/web-platform/tests/webdriver/tests/classic/new_session/create_alwaysMatch.py +++ b/testing/web-platform/tests/webdriver/tests/classic/new_session/create_alwaysMatch.py @@ -13,3 +13,10 @@ def test_valid(new_session, add_browser_capabilities, key, value): response, _ = new_session({"capabilities": { "alwaysMatch": add_browser_capabilities({key: value})}}) assert_success(response) + response_capabilities = response.body["value"]["capabilities"] + if ":" not in key and value is not None: + if key == "timeouts": + for timeout_key, timeout_value in value.items(): + assert response_capabilities[key][timeout_key] == timeout_value + else: + assert response_capabilities[key] == value diff --git a/testing/web-platform/tests/webdriver/tests/classic/new_session/create_firstMatch.py b/testing/web-platform/tests/webdriver/tests/classic/new_session/create_firstMatch.py index d4523f4330c7..22c74bcfbd74 100644 --- a/testing/web-platform/tests/webdriver/tests/classic/new_session/create_firstMatch.py +++ b/testing/web-platform/tests/webdriver/tests/classic/new_session/create_firstMatch.py @@ -14,3 +14,10 @@ def test_valid(new_session, add_browser_capabilities, key, value): response, _ = new_session({"capabilities": { "firstMatch": [add_browser_capabilities({key: value})]}}) assert_success(response) + response_capabilities = response.body["value"]["capabilities"] + if ":" not in key and value is not None: + if key == "timeouts": + for timeout_key, timeout_value in value.items(): + assert response_capabilities[key][timeout_key] == timeout_value + else: + assert response_capabilities[key] == value