Skip to content

Commit

Permalink
fix: add --disable-search-engine-choice-screen to default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelMor25 committed Aug 1, 2024
1 parent a9f9764 commit 46863bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const CONTAINERIZED_CHROME_FLAGS = ['--no-sandbox', '--disable-dev-shm-us

export function buildChromeArgs ({ config, cdpPort, platformArgs, tempProfileDir, isContainerized, isNativeAutomation, browserName }) {
const headlessMode = ['chrome', 'chromium'].includes(browserName) ? '--headless=new' : '--headless';
const defaultArgs = ['--disable-search-engine-choice-screen'];

let chromeArgs = []
.concat(
Expand All @@ -11,7 +12,8 @@ export function buildChromeArgs ({ config, cdpPort, platformArgs, tempProfileDir
config.userArgs ? [config.userArgs] : [],
// NOTE: we need to prevent new window blocking for multiple windows in Native Automation
isNativeAutomation ? ['--disable-popup-blocking'] : [],
platformArgs ? [platformArgs] : []
platformArgs ? [platformArgs] : [],
defaultArgs
)
.join(' ');

Expand Down

0 comments on commit 46863bc

Please sign in to comment.