Skip to content

Commit

Permalink
chore: Add headless option to firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Dani committed Aug 9, 2024
1 parent 851a696 commit 18c3b22
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/browsers/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,23 @@ const defaultCapabilities: Record<string, Capabilities> = {
},
Firefox: {
browserName: 'firefox',
setWindowRect: true,
'moz:firefoxOptions': {
prefs: {
'fission.webContentIsolationStrategy': 0,
'fission.bfcacheInParent': false,
},
},
},
FirefoxHeadless: {
browserName: 'firefox',
'moz:firefoxOptions': {
prefs: {
'fission.webContentIsolationStrategy': 0,
'fission.bfcacheInParent': false,
},
args: ['-headless'],
},
},
Safari: {
browserName: 'safari',
},
Expand Down

0 comments on commit 18c3b22

Please sign in to comment.