Forum Discussion
hariharan_ss
Oct 27, 2023Copper Contributor
How to disable popup happening on edge 118?
I am getting the popup after 5 mins of running the selenium test. The popup states "Help us make search better for you" and this blocks the screen. I need to turn this off through selenium option. Th...
tmacvicar
Jan 11, 2024Copper Contributor
I spent a lot of time figuring this out today and finally found a solution, add the `--guest` argument. The `no-first-run` switch worked but presented a Welcome Screen overlay.
The browser will use a default Guest profile, which doesn't prompt for profile changes.
NodeJS example (used with WebdriverIO v7)
capabilities = {
browserName: 'MicrosoftEdge',
acceptInsecureCerts: true,
'ms:edgeOptions': {
args: ['test-type', '--no-sandbox', '--disable-dev-shm-usage', '--guest'],
excludeSwitches: ["enable-automation", "no-default-browser-check"]
}
}