Skip to content

[🐛 Bug] [Python] setting remote_server_addr in RemoteConnection() is deprecated #14686

Closed

Description

@pquentin

What happened?

#13286 added a new warning that was released in 4.26.0. Unfortunately there is still code in Selenium that triggers this warning. This happens with at least with the Firefox and Chromium webdrivers. This broke our CI as we fail on unknown warnings.

How can we reproduce the issue?

My use case is urllib3 using pytest-pyodide, but this can be reproduced with the "Getting Started" sample:

from selenium import webdriver

driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
driver.close()

Then run with warning enableds using python -Wall sample.py.

Relevant log output

/.../urllib3/.nox/emscripten-firefox/lib/python3.12/site-packages/selenium/webdriver/firefox/remote_connection.py:35: DeprecationWarning: setting remote_server_addr in RemoteConnection() is deprecated, set in ClientConfig instance instead
  super().__init__(

Operating System

Ubuntu

Selenium version

Python 4.26.0

What are the browser(s) and version(s) where you see this issue?

Chrome, Firefox

What are the browser driver(s) and version(s) where you see this issue?

Not sure.

Are you using Selenium Grid?

No response

Activity

  1. added
    I-defect
    A-needs-triaging
    on Oct 30, 2024
  2. github-actions commented on Oct 30, 2024

    @github-actions
    Contributor

    @pquentin, 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!

  3. changed the title [-][🐛 Bug]: setting remote_server_addr in RemoteConnection() is deprecated, set in ClientConfig instance instead[/-] [+][🐛 Bug] [Python] setting remote_server_addr in RemoteConnection() is deprecated[/+] on Oct 30, 2024
  4. added
    C-py
    and removed
    A-needs-triaging
    on Oct 31, 2024
  5. github-actions commented on Nov 30, 2024

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

  6. locked and limited conversation to collaborators on Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyI-defect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions