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
Tested against: dbede12
When ClearCookies is called on BrowserContext it panics and fails to clear the cookies ending with the following error:
ClearCookies
BrowserContext
unable to clear cookies permissions: invalid context
The javascript test used was:
import { sleep } from 'k6'; import launcher from 'k6/x/browser'; export default function () { const browser = launcher.launch('chromium', { headless: false, }); const context = browser.newContext(); const page = context.newPage(); const res = page.goto('https://test.k6.io/browser.php'); context.clearCookies(); sleep(10); browser.close(); }
The expected result is that it clears the cookies for all pages that were opened from the relevant context.
The Playwright test code is:
// @ts-check const { test, chromium } = require('@playwright/test'); test.describe('Editing', () => { test('Type login creds', async () => { const browser = await chromium.launch({ headless: false, slowMo: 500 }); const ctx = await browser.newContext(); const page = await ctx.newPage(); await page.goto('https://test.k6.io/browser.php'); await ctx.clearCookies(); await new Promise(resolve => setTimeout(resolve, 10000)); await browser.close(); }); });
The text was updated successfully, but these errors were encountered:
clearPermissions
clearCookies
inancgumus
Successfully merging a pull request may close this issue.
Tested against: dbede12
When
ClearCookies
is called onBrowserContext
it panics and fails to clear the cookies ending with the following error:The javascript test used was:
The expected result is that it clears the cookies for all pages that were opened from the relevant context.
The Playwright test code is:
The text was updated successfully, but these errors were encountered: