-
Notifications
You must be signed in to change notification settings - Fork 659
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
Add capability to observe the cookie state #4428
Comments
I'm still hitting this issue at the end of 2020. Unable to read httpOnly cookies in testCafe. |
Hello, Unfortunately, I cannot give you any time estimates on when this enhancement will be addressed. |
It will be helpful to have this feature which will get all the cookies including httpOnly, secure basically all cookies we see in dev tools. |
For the moment, you can use a work-around to access httpOnly cookies: Here it is again anyway:
You may need to wrap your code in a promise and await on it, especially if you access the body as JSON like I do in addition to the cookies, otherwise code after this request logger block may be executed before you read the body. |
An advanced cookie management API was released in v1.19.0. We added new flexible cross-browser methods that allow you to manipulate browser cookies with ease even if they have the The following example demonstrates how to obtain all cookies from all testing pages: const allCookies = await t.getCookies(); Learn more about each cookie method in our docs: |
TestCafe uses the own cookie processing mechanism. It leads to a user cannot see the full cookie list same as in the browser development tools.
We need to provide such information. It will be useful for complex authentication cases.
#1721 (comment)
The text was updated successfully, but these errors were encountered: