Skip to content

Commit

Permalink
[7.4] FTR: fix "DevToolsActivePort file doesn't exist" error o… (#49835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer authored Oct 31, 2019
1 parent b0e9799 commit 9f21652
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/functional/services/remote/webdriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,23 @@ async function attemptToCreateCommand(
case 'chrome': {
const chromeCapabilities = Capabilities.chrome();
const chromeOptions = [
'disable-translate',
'new-window',
// Disables the sandbox for all process types that are normally sandboxed.
'no-sandbox',
// Launches URL in new browser window.
'new-window',
// By default, file:// URIs cannot read other file:// URIs. This is an override for developers who need the old behavior for testing.
'allow-file-access-from-files',
// Use fake device for Media Stream to replace actual camera and microphone.
'use-fake-device-for-media-stream',
// Bypass the media stream infobar by selecting the default device for media streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
'use-fake-ui-for-media-stream',
];
if (process.platform === 'linux') {
// The /dev/shm partition is too small in certain VM environments, causing
// Chrome to fail or crash. Use this flag to work-around this issue
// (a temporary directory will always be used to create anonymous shared memory files).
chromeOptions.push('disable-dev-shm-usage');
}
if (headlessBrowser === '1') {
// Use --disable-gpu to avoid an error from a missing Mesa library, as per
// See: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Expand Down

0 comments on commit 9f21652

Please sign in to comment.