Skip to content

Update dependency selenium to v4.20.0 #1690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
selenium==4.19.0
selenium==4.20.0
pytest
trio
pytest-trio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest
from selenium.webdriver.common.by import By
from selenium.webdriver.common.devtools.v121.network import Headers
from selenium.webdriver.common.devtools.v124.network import Headers


@pytest.mark.trio
Expand Down
11 changes: 4 additions & 7 deletions examples/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,31 @@ def chromedriver_bin():
service = webdriver.chrome.service.Service()
options = webdriver.ChromeOptions()
options.browser_version = 'stable'
yield webdriver.common.driver_finder.DriverFinder().get_path(service=service, options=options)
yield webdriver.common.driver_finder.DriverFinder(service=service, options=options).get_driver_path()


@pytest.fixture(scope='function')
def chrome_bin():
service = webdriver.chrome.service.Service()
options = webdriver.ChromeOptions()
options.browser_version = 'stable'
webdriver.common.driver_finder.DriverFinder().get_path(service=service, options=options)
yield options.binary_location
yield webdriver.common.driver_finder.DriverFinder(service=service, options=options).get_browser_path()


@pytest.fixture(scope='function')
def edge_bin():
service = webdriver.edge.service.Service()
options = webdriver.EdgeOptions()
options.browser_version = 'stable'
webdriver.common.driver_finder.DriverFinder().get_path(service=service, options=options)
yield options.binary_location
yield webdriver.common.driver_finder.DriverFinder(service=service, options=options).get_browser_path()


@pytest.fixture(scope='function')
def firefox_bin():
service = webdriver.firefox.service.Service()
options = webdriver.FirefoxOptions()
options.browser_version = 'stable'
webdriver.common.driver_finder.DriverFinder().get_path(service=service, options=options)
yield options.binary_location
yield webdriver.common.driver_finder.DriverFinder(service=service, options=options).get_browser_path()


@pytest.fixture(scope='function')
Expand Down