Oct 27 2023 03:02 AM - edited Oct 27 2023 03:29 AM
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. This started only from edge 118 beta. Any suggestions to turn this off ?
Jan 10 2024 04:46 PM
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"]
}
}