attentionThis feature has known issues. For details, refer to #442.
Clears the BrowserContext's cookies.
attentionThis feature has known issues. For details, refer to #442.
Clears the BrowserContext's cookies.
import { browser } from 'k6/experimental/browser';
export const options = { scenarios: { browser: { executor: 'shared-iterations', options: { browser: { type: 'chromium', }, }, }, },}
export default async function () { const context = browser.newContext(); const page = context.newPage();
await page.goto('https://test.k6.io/'); context.clearCookies();}