diff --git a/examples/python/requirements.txt b/examples/python/requirements.txt index 8f84ef732b73..86e5c1bdcabe 100644 --- a/examples/python/requirements.txt +++ b/examples/python/requirements.txt @@ -1,4 +1,4 @@ -selenium==4.46.0 +selenium==4.47.0 pytest==9.1.1 trio==0.33.0 pytest-trio==0.8.0 diff --git a/examples/python/tests/browsers/test_firefox.py b/examples/python/tests/browsers/test_firefox.py index 20ff9beecec9..fbe88b6aca8f 100644 --- a/examples/python/tests/browsers/test_firefox.py +++ b/examples/python/tests/browsers/test_firefox.py @@ -145,8 +145,8 @@ def test_full_page_screenshot(firefox_driver): def test_set_context(): options = webdriver.FirefoxOptions() - options.add_argument("-remote-allow-system-access") - driver = webdriver.Firefox(options=options) + service = webdriver.FirefoxService(service_args=["--allow-system-access"]) + driver = webdriver.Firefox(options=options, service=service) with driver.context(driver.CONTEXT_CHROME): driver.execute_script("console.log('Inside Chrome context');")