No results for

Powered byAlgolia
⚠️ This is the archived documentation for k6 v0.45. Go to the latest version.

clearPermissions()

attention

This feature has known issues. For details, refer to issue #443.

Clears all permission overrides for the BrowserContext.

Example

import { chromium } from 'k6/experimental/browser';
export default function () {
const browser = chromium.launch();
const context = browser.newContext();
context.grantPermissions(['clipboard-read']);
// do stuff ...
context.clearPermissions();
}