You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setting remote_server_addr in RemoteConnection() is deprecated, set in ClientConfig instance instead
We're seeing this warning on a very simple use case that uses only default webdriver options except for headless. Seems like the culprit is probably this line:
but I'm unfamiliar with your codebase so I'm not sure what the right fix would be.
How can we reproduce the issue?
our usage looks like this:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
driver = webdriver.Chrome(options=options) # <- this line triggers the DeprecationWarning
(simplified from https://github.com/mne-tools/mne-python/blob/f00deb44e2996a3b707c3f0399cfa0d8b842c566/doc/sphinxext/contrib_avatars.py#L21-L29)
Relevant log output
Traceback (most recent call last):
File "/home/circleci/python_env/lib/python3.12/site-packages/sphinx/events.py", line 404, in emit
results.append(listener.handler(self.app, *args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/circleci/project/doc/sphinxext/contrib_avatars.py", line 29, in generate_contrib_avatars
driver = webdriver.Chrome(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/circleci/python_env/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
super().__init__(
File "/home/circleci/python_env/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 57, in __init__
executor = ChromiumRemoteConnection(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/circleci/python_env/lib/python3.12/site-packages/selenium/webdriver/chromium/remote_connection.py", line 33, in __init__
super().__init__(
File "/home/circleci/python_env/lib/python3.12/site-packages/selenium/webdriver/remote/remote_connection.py", line 302, in __init__
warnings.warn(
DeprecationWarning: setting remote_server_addr inRemoteConnection() is deprecated, setin ClientConfig instance instead
(from here: https://app.circleci.com/pipelines/github/mne-tools/mne-python/25647/workflows/8fe55c7b-0c19-44dc-a007-9cab0cb274a5/jobs/69427?invite=true#step-142-1157_34)
@drammock, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-* label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer label.
Thank you!
drammock
changed the title
[🐛 Bug]:
[🐛 Bug]: DeprecationWarning raised by default init args of Chrome webdriver
Oct 30, 2024
What happened?
#13286 introduced a DeprecationWarning:
We're seeing this warning on a very simple use case that uses only default webdriver options except for
headless
. Seems like the culprit is probably this line:selenium/py/selenium/webdriver/chromium/webdriver.py
Line 58 in db343b9
but I'm unfamiliar with your codebase so I'm not sure what the right fix would be.
How can we reproduce the issue?
Relevant log output
Operating System
Linux
Selenium version
Python, 4.26.0 (https://app.circleci.com/pipelines/github/mne-tools/mne-python/25647/workflows/8fe55c7b-0c19-44dc-a007-9cab0cb274a5/jobs/69427?invite=true#step-118-9272_35)
What are the browser(s) and version(s) where you see this issue?
sadly our CI log doesn't show that info
What are the browser driver(s) and version(s) where you see this issue?
sadly our CI log doesn't show that info
Are you using Selenium Grid?
n/a
The text was updated successfully, but these errors were encountered: