-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cookies set with StorageDomain.setCookies
are not sent with Page.goto()
#282
Comments
Hi @jschneider, thank you so much for the report.
How did you infer this? This library generates domain APIs based on the official protocol definitions, and this includes deprecations. I double checked, and only the So you should still be able to use
Regarding this, I'm not sure what the expected behaviour should be. The definition of the |
Ok, thanks mate! I will stick to network.setCookie(). |
No problem at all. I'm glad your problem is solved (or rather not really a problem for you anymore). Since the main topic of this issue is actually about the |
StorageDomain.setCookies
are not sent with Page.goto()
Version
5.3.1-1170846
What happened?
Since 5.0 "pageSession.network.setCookie" is deprecated.
I tried to replace it with
pageSession.storage.setCookies(
The cookies seem to be set. At least
pageSession.storage.getCookies(
returns plausible values.But the set cookies are not sent to the server when calling page.goto.
Setting the cookie the "old" way works as expected.
Another thing: I could not get the "expires" value to work. Maybe this is related?
Reproduction and additional details
No response
Kotlin target platforms
JVM, Kotlin 1.8
The text was updated successfully, but these errors were encountered: