From 7c241549a0e602200f38197fc3596309e6ead337 Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc <nguyenducviet4496@gmail.com> Date: Thu, 31 Oct 2024 19:46:33 +0000 Subject: [PATCH] Python 4.26.1 and update examples test Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.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()