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

[FEATURE] Cookies not supported with Electron #12096

Closed
taniarascia opened this issue Feb 14, 2022 · 15 comments · May be fixed by #30334
Closed

[FEATURE] Cookies not supported with Electron #12096

taniarascia opened this issue Feb 14, 2022 · 15 comments · May be fixed by #30334

Comments

@taniarascia
Copy link

I'm using Playwright to run end-to-end tests for an Electron app. I have a use case for cookies, but it appears none of the cookies commands exist on the BrowserContext with Electron.

I assumed they would have the same API, but upon trying to get cookies:

const context = await app.context()
await context.cookies()

I get this error:

browserContext.cookies: Protocol error (Storage.getCookies): Browser context management is not supported.

Is cookies not supported for Electron + Playwright, or is there a workaround?

@taniarascia taniarascia changed the title Cookies not enabled with Electron [FEATURE] Cookies not supported with Electron Feb 14, 2022
@dgozman
Copy link
Contributor

dgozman commented Feb 14, 2022

@taniarascia Indeed, some feature are not working with Electron, that's why it is still experimental 😄 I don't think there is an easy workaround today.

@ShanmukhaGajula
Copy link

upvote for electron support!

3 similar comments
@EliveltonRepolho
Copy link

upvote for electron support!

@Stratoscop
Copy link

upvote for electron support!

@RADDEV
Copy link

RADDEV commented Nov 2, 2022

upvote for electron support!

@apankov1
Copy link

apankov1 commented Jan 5, 2023

Upvote

@daomien
Copy link

daomien commented Mar 16, 2023

Upvote for electron support.
btw, is there any other way to get cookies from electron app?

@jevasco
Copy link

jevasco commented Mar 24, 2023

upvote for electron support.
echoing above, is there a work around for setting cookies?

@jevasco
Copy link

jevasco commented Mar 27, 2023

👋 @dgozman , is there a doc that list these limitations for Playwright support to Electron app that we can use for evaluation purposes?

@dgozman
Copy link
Contributor

dgozman commented Mar 27, 2023

@jevasco There is no such doc today, unfortunately. You can look at tests that are skipped for Electron as a guess.

@jevasco
Copy link

jevasco commented Mar 31, 2023

Thanks @dgozman , is there a place i could look into to see progress on making Playwright fully support Electron app like new feature support implementation or roadmap?

@dgozman
Copy link
Contributor

dgozman commented Mar 31, 2023

@jevasco There is no roadmap, sorry.

@lixingxing1231
Copy link

Upvote

@rjwaltz
Copy link

rjwaltz commented Dec 21, 2023

upvote for electron support!

@mxschmitt
Copy link
Member

mxschmitt commented Mar 30, 2024

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

Successfully merging a pull request may close this issue.