Skip to content

Commit

Permalink
test: add --disable-dev-shm-usage to address `WebDriverError: unkno…
Browse files Browse the repository at this point in the history
…wn error: Chrome failed to start: crashed`

This fixes an issue where protractor integration tests are failing with

```
[07:38:37] I/direct - Using ChromeDriver directly...
[07:38:39] E/launcher - unknown error: Chrome failed to start: crashed.
  (unknown error: DevToolsActivePort file doesn't exist)
```
  • Loading branch information
alan-agius4 committed Dec 19, 2024
1 parent 307eda1 commit 0718e1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.config = {
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['--headless', '--disable-gpu', '--window-size=800,600'],
args: ['--headless', '--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage'],
binary: require('puppeteer').executablePath(),
},
},
Expand Down

0 comments on commit 0718e1b

Please sign in to comment.