We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use I.grabCookie as intended by documentation: https://codecept.io/helpers/Playwright/#grabcookie await I.grabCookie('myCookie').value
I.grabCookie
await I.grabCookie('myCookie').value
TypeScript Error Property 'value' does not exist on type 'string'.
Property 'value' does not exist on type 'string'.
I think this should be fairly easy to fix by changing return type in https://github.com/codeceptjs/CodeceptJS/blame/e0ac568f04a2b8aa4b1f0b0da2ef1f2a58a5fa7c/typings/tests/helpers/Playwright.types.ts#L98. My current workaround is putting // @ts-ignore above it to surpress the false error.
// @ts-ignore
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What are you trying to achieve?
Use
I.grabCookie
as intended by documentation:https://codecept.io/helpers/Playwright/#grabcookie
await I.grabCookie('myCookie').value
What do you get instead?
TypeScript Error
Property 'value' does not exist on type 'string'.
Details
I think this should be fairly easy to fix by changing return type in https://github.com/codeceptjs/CodeceptJS/blame/e0ac568f04a2b8aa4b1f0b0da2ef1f2a58a5fa7c/typings/tests/helpers/Playwright.types.ts#L98.
My current workaround is putting
// @ts-ignore
above it to surpress the false error.The text was updated successfully, but these errors were encountered: