Skip to content

Commit

Permalink
Setting firefox to run in debug mode when executing in headless
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-dynamsoft committed Sep 17, 2024
1 parent b02c023 commit e364ffd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,17 @@ export default defineConfig({
"devtools": true,
"headless": false,
args: [
// "--use-fake-device-for-media-stream",
// "--use-fake-ui-for-media-stream",
"--use-fake-device-for-media-stream",
"--use-fake-ui-for-media-stream",
"--headless=firefox",
"--disable-web-security",
"--enable-web-rtc"],
firefoxUserPrefs: {
"permissions.default.camera": 1 // Allow camera access automatically
// "media.navigator.streams.fake": true, // Use fake streams if needed
"permissions.default.camera": 1, // Allow camera access automatically
"media.navigator.streams.fake": true, // Use fake streams if needed
"devtools.debugger.remote-enabled": true,
"devtools.debugger.prompt-connection": false,
"devtools.chrome.enabled": true
},
},
},
Expand Down

0 comments on commit e364ffd

Please sign in to comment.