Forum Discussion

hariharan_ss's avatar
hariharan_ss
Copper Contributor
Oct 27, 2023

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. This started only from edge 118 beta. Any suggestions to turn this off ?

  • tmacvicar's avatar
    tmacvicar
    Copper Contributor

    hariharan_ss 

     

    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"]
        }
    }

     

Resources