Skip to content
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] Cannot set cookie in juggler #1269

Closed
jperl opened this issue Mar 6, 2020 · 1 comment · Fixed by #1280
Closed

[BUG] Cannot set cookie in juggler #1269

jperl opened this issue Mar 6, 2020 · 1 comment · Fixed by #1280
Assignees

Comments

@jperl
Copy link
Contributor

jperl commented Mar 6, 2020

Context:

  • Playwright Version: =0.11.1-next.1583521768218
  • Operating System: Mac

Code Snippet

https://github.com/qawolf/playwright-utils/blob/aaf40dca8eeb89d6c9e693d9533d126bf715e36a/tests/setState.test.ts

Describe the bug

    Protocol error (Browser.setCookies): ERROR: failed to call method 'Browser.setCookies' with
 parameters {
      "browserContextId": "cf29fe83-62dd-b248-ae26-37b93dee95b2",
      "cookies": [
        {
          "name": "csrf_same_site",
          "value": "1",
          "domain": ".twitter.com",
          "path": "/",
          "expires": 1615052185,
          "httpOnly": true,
          "secure": true,
          "session": false,
          "sameSite": "Lax"
        }
      ]
    }
    Found property "<root>.cookies[0].session" - false which is not described in this scheme _dispatch@chrome://juggler/content/protocol/Dispatcher.js:103:15
@aslushnikov
Copy link
Collaborator

Yep, surprisingly we didn't have a single test for non-session cookies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants