Created
June 20, 2021 18:55
-
-
Save sahmeepee/e6189d0f717b5cf6d52d1c5807a7cb52 to your computer and use it in GitHub Desktop.
Common Playwright Test Runner config settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
use: { | |
// Browser options | |
headless: false, // Default: true | |
slowMo: 100, // in milliseconds, default: 0 | |
//timeout: 60000, // Max time in milliseconds for browser to start. Default: 30000; Disable timeout: 0 | |
//args: --disable-popup-blocking --disable-web-security // see https://peter.sh/experiments/chromium-command-line-switches/ for Chromium args | |
//channel: 'msedge' // "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", "msedge-canary" | |
//devtools: false, // true | false | |
//executablePath: c:\path\to\chrome.exe, | |
// Context options | |
//acceptDownloads: true, // Default: false | |
//bypassCSP: true, // Toggles bypassing page's Content-Security-Policy. | |
//viewport: { width: 1280, height: 720 }, | |
//ignoreHTTPSErrors: true, // Default: false | |
//javaScriptEnabled: false, // Default: true | |
//userAgent: 'myUserAgent', | |
// Artifacts | |
//screenshot: 'only-on-failure', // off | on | only-on-failure | |
//trace: 'retry-with-trace', // off | on | retain-on-failure | retry-with-trace | |
//video: 'retry-with-video', // off | on | retain-on-failure | retry-with-video | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment