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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰 Bug]: Delete Cookies removes all cookies with the same name instead of deleting a provided Cookie #13840
Comments
@dmitryyukhnovets, 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! |
Hello! Thank you for sharing the details. |
It seems BiDi will also match cookies only by name: https://w3c.github.io/webdriver-bidi/#match-cookie You should raise this issue with https://github.com/w3c/webdriver-bidi and/or https://github.com/w3c/webdriver |
Hi, @dmitryyukhnovets. Please create an issue with the WebDriver project. Feel free to comment the issues that you raise back in this issue. Thank you. |
Thank you for checking! It should be supported by browsers based on the WPT Tests https://github.com/web-platform-tests/wpt/blob/32fdd84c40/webdriver/tests/bidi/storage/delete_cookies/filter.py |
What happened?
RemoteWebDriver class has the following method:
It means that cookies are deleted by name, so if we have two cookies with the same name (but different other attributes) - we cannot remove only one of them.
WebDriver version 4.17.0
Browser Chrome
To reproduce the issue please see the code below.
How can we reproduce the issue?
Relevant log output
Default cookies size :2 Add one cookie:3 Add another cookie:4 Removed one cookie Finally :2 false
Operating System
MacOs
Selenium version
Java 17
What are the browser(s) and version(s) where you see this issue?
Chrome 123.0.6312.124
What are the browser driver(s) and version(s) where you see this issue?
The chromedriver version (122.0.6261.128)
Are you using Selenium Grid?
no
The text was updated successfully, but these errors were encountered: