-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[🐛 Bug]: Remove on spec compliant desiredCapabilities
and requiredCapabilities
#11820
Comments
@whimboo, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
For Python this is only present in @nvborisenko can you double check for .NET whether it is still sending both @diemol how much work is going to be required to pull this out of Java? Thanks! |
Just quickly tested .Net bindings, seems it uses
|
I don't think this is in Java anymore, you might find variable names or comments, but |
No, I just didn't remember it had been removed. I guess we're ok to close this. |
@titusfortner would you mind telling us what the closed status exactly mean? Is each and every usage of those capabilities gone across all bindings? And (if possible) since which release are the binding no longer using them. I wonder when we can get started to remove the support in geckodriver. Thanks! |
.NET is a little confusing because it references "desiredCapabilities" all over the place still, it just doesn't send it as a key to the driver. |
Thanks a lot! So Selenium 4.9 has been released on April 20, 2023 so we should be fine to get it removed in geckodriver now. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
Both the
desiredCapabilities
andrequiredCapabilities
were used in pre-WebDriver classic spec times to specify capabilities for the browser. Now this is no longer needed and could be removed.The WebDriver classic spec only uses
firstMatch
andalwaysMatch
instead when processing capabilities.As per code search there are a couple of Selenium bindings which still make use of the non-spec capabilities matching including Python, Java, C#.
Once the usage is gone we will also remove it from geckodriver.
Thanks.
CC @diemol, @AutomatedTester, @jimevans.
How can we reproduce the issue?
Querying the Selenium repository:
https://github.com/SeleniumHQ/selenium/search?q=desiredcapabilities&type=code
Relevant log output
None
Operating System
MacOS 13.2.1
Selenium version
Latest
What are the browser(s) and version(s) where you see this issue?
Firefox 113
What are the browser driver(s) and version(s) where you see this issue?
geckodriver 0.32.2
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: