Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[Feature] - Delete a certain cookie instead of clear all cookies #742
Comments
|
We could add that. The cookie would be identified by the secure+domain+path+name key. Could you share the use case for the individual cookie removal? (You can work around it today via getting all cookies, deleting all cookies and restoring everything but one cookie in case your context is not huge) |
|
@pavelfeldman I'm not really sure if there are many users want to manipulate the cookies but it would be nice to have an option to delete a special cookie key. Thanks! |
|
@PeterNgTr : wrong Pavel |
hey man, sorry for the wrong mentioned. |
|
Hi All, @PeterNgTr I was thinking about this feature - should not we try do to something like delete all cookies matching a certain set of criteria.
|
|
@pavelfeldman, I was looking into adding this. I am not super familiar with how playwright interfaces with Chromium, so correct me if I am wrong anywhere. |
Based on the docs here https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browsercontext we cannot delete a certain cookie, is there any consideration to have that kind of feature?