w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Add an option to filter session cookies in `getCookies` or `deleteCookies` command #654

Open lutien opened 4 months ago

lutien commented 4 months ago

At the moment, since expiry field of the filter is optional if it is set to null or undefined in getCookies or deleteCookies, it will be omitted when matching the cookies. Which means that there is no way to specifically filter the cookies which have expiry field not set. Not sure if it's something what clients would want. If, yes, one option would be to specify the behavior for null value for expiry field to filter for session cookies. Another option could be to have a special filter field, e.g.isSession.