My selenium automation breaks with new Edge "experimental mode" - "DOWNLOAD MICROSOFT EDGE MOBILE APP" POP-UP

MikeErh 0 Reputation points
2024-03-23T04:00:05.9733333+00:00

My python + selenium automation breaks with new Edge "experimental mode" - "DOWNLOAD MICROSOFT EDGE MOBILE APP" POP-UP

It does not help using edge://flags - because then I have to restart msedge and then the automation is also broken

I need a msedgedriver setting to disable it in python code ?

Someone here to help ?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,131 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jinxin Wang (Shanghai Wicresoft Co Ltd) 900 Reputation points Microsoft Vendor
    2024-03-26T09:40:50.62+00:00

    Hi @MikeErh,

    There are two solutions to disable "DOWNLOAD MICROSOFT EDGE MOBILE APP" POP-UP. The first one is that you can use Python code to block it. The key code statements are as follows:

    options = webdriver.EdgeOptions() 
    
    options.add_argument("--disable-features=msEdgeEnableNurturingFramework")
    options.add_experimental_option("prefs", {"user_experience_metrics": {"personalization_data_consent_enabled": True}})
    

    The second option is that you can block "DOWNLOAD MICROSOFT EDGE Mobile App" POP-Up by disabling "ShowRecommendationsEnabled" Policy. You can refer to this link: https://learn.microsoft.com/en-us/deployedge/microsoft-edge-policies#showrecommendationsenabled.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,

    Jinxin Wang

    0 comments No comments