-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Usage of deprecated desired_capabilities
in Selenium Wire
#3202
Comments
Wire Mode isn't compatible with Grid Mode anymore because selenium-wire is unmaintained and archived. The issues are coming directly from
You have two options:
|
Thank you for your answer. Also, it should be enough to adapt the old code to avoid usage of the deprecated argument and passing the desired capabilities to the constructor together with |
This can be the documentation if it wasn't clear:
If that doesn't work for you, try another repo. |
I apologize if I came across as disrespectful; that was not my intention, I really like this project. I was just offering to help with this issue and looking to gather your feedback on whether you believe this would be beneficial for the community before I begin working on it 😄 |
@fgibertoni You're welcome to look into it. Given that |
Hello everyone!
I am getting a
TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities'
using latest SeleniumBase version (v4.31.6) when instancing aseleniumbase.Driver
object using Selenium Grid and Selenium Wire.How to reproduce
I am using Python 3.12.3, Selenium Base 4.31.6 and Google Chrome 130.0.6723.58.
Selenium Grid has been successfully started (following docs) with:
I am connecting to the grid running at
http://localhost:4444
with:I expected to connect to my local instance of Selenium Grid to run some tests and analyze HTTP requests and responses.
Error message
Analysis
Selenium removed
desired_capabilities
from version 4.10.0 but Selenium Wire is still using it. Unluckily I don't think they will ever fix the issue as the project is no longer maintained.During investigations I noticed that in
browser_launcher.py
there is no way to pass the optional parameterauto_config=False
inseleniumwire_options
that would prevent the old code from being executed.Passing this parameter could be a workaround waiting for a more structured solution.
Is there another way to avoid this error or am I missing something here ?
Thank you for your help.
The text was updated successfully, but these errors were encountered: