From 6e06acf354c514dc00b54ef316c37c3872879f4f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 08:19:07 +0700 Subject: [PATCH] chore(deps): update dependency selenium to v4.26.1 (#2032) * Python 4.26.1 and update examples test * chore(deps): update dependency selenium to v4.26.1 --------- Signed-off-by: Viet Nguyen Duc Co-authored-by: Viet Nguyen Duc Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- examples/python/requirements.txt | 2 +- examples/python/tests/drivers/test_options.py | 4 ++-- examples/python/tests/drivers/test_remote_webdriver.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/python/requirements.txt b/examples/python/requirements.txt index 8d89e7b48296..234f278f9e4b 100644 --- a/examples/python/requirements.txt +++ b/examples/python/requirements.txt @@ -1,4 +1,4 @@ -selenium==4.26.0 +selenium==4.26.1 pytest trio pytest-trio diff --git a/examples/python/tests/drivers/test_options.py b/examples/python/tests/drivers/test_options.py index fb5193f33b2f..d71e1ed605ae 100644 --- a/examples/python/tests/drivers/test_options.py +++ b/examples/python/tests/drivers/test_options.py @@ -84,8 +84,8 @@ def test_set_browser_name(): def test_set_browser_version(): options = webdriver.ChromeOptions() - options.browser_version = 'latest' - assert options.capabilities['browserVersion'] == 'latest' + options.browser_version = 'stable' + assert options.capabilities['browserVersion'] == 'stable' driver = webdriver.Chrome(options=options) driver.get("https://www.selenium.dev/") driver.quit() diff --git a/examples/python/tests/drivers/test_remote_webdriver.py b/examples/python/tests/drivers/test_remote_webdriver.py index 48725bba06ce..ff765c2025dd 100644 --- a/examples/python/tests/drivers/test_remote_webdriver.py +++ b/examples/python/tests/drivers/test_remote_webdriver.py @@ -13,7 +13,7 @@ def test_start_remote(server): options = webdriver.ChromeOptions() driver = webdriver.Remote(command_executor=server, options=options) - assert "localhost" in driver.command_executor._url + assert "localhost" in driver.command_executor._client_config.remote_server_addr driver.quit()