From 1122bb47f7f7f52ef0e1e31a297d5a5d6875b888 Mon Sep 17 00:00:00 2001 From: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com> Date: Mon, 24 Mar 2025 23:19:49 -0400 Subject: [PATCH] Fix Python tests for 4.30.0 --- examples/python/requirements.txt | 2 +- examples/python/tests/bidi/cdp/test_network.py | 2 +- examples/python/tests/conftest.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/python/requirements.txt b/examples/python/requirements.txt index f1afcbd854a6..fa1b3e496e6a 100644 --- a/examples/python/requirements.txt +++ b/examples/python/requirements.txt @@ -1,4 +1,4 @@ -selenium==4.29.0 +selenium==4.30.0 pytest==8.3.5 trio==0.29.0 pytest-trio==0.8.0 diff --git a/examples/python/tests/bidi/cdp/test_network.py b/examples/python/tests/bidi/cdp/test_network.py index 191d7a4a95ad..c8fe2d4011c9 100644 --- a/examples/python/tests/bidi/cdp/test_network.py +++ b/examples/python/tests/bidi/cdp/test_network.py @@ -2,7 +2,7 @@ import pytest from selenium.webdriver.common.by import By -from selenium.webdriver.common.devtools.v131.network import Headers +from selenium.webdriver.common.devtools.v134.network import Headers @pytest.mark.trio diff --git a/examples/python/tests/conftest.py b/examples/python/tests/conftest.py index 660ce87e396a..bfb60082f5c0 100644 --- a/examples/python/tests/conftest.py +++ b/examples/python/tests/conftest.py @@ -14,6 +14,12 @@ from selenium import webdriver +def pytest_configure(config): + config.addinivalue_line( + "markers", "driver_type(type): marks tests to use driver type ('bidi', 'firefox', etc)" + ) + + @pytest.fixture(scope='function') def driver(request): marker = request.node.get_closest_marker("driver_type")