r/SeleniumPython • • Sep 02 '24

Help How do I get rid of this annoying Popup (without having to remove Teams from my machine)

It doesn't let me proceed or click any other button without manually closing the popup which I cannot do when I run the script with the headless argument. Any help would be much appreciated!

2 Upvotes

4 comments sorted by

1

u/tpcryptoo Sep 02 '24

You can pass some configurations to your chrome driver. See this link : https://developer.chrome.com/docs/chromedriver/capabilities?hl=en

2

u/Motaphe Sep 16 '24

Thanks but I found a way around using a different method. If you put a /l/ in the meeting url, it forces the browser to join the meeting from the browser and that popup never appears.

1

u/chenpsilva Dec 12 '24

does this works for all popups? in my case I need to allow open an external app

1

u/Floryda_Guennoc 5d ago

headless should actually suppress external protocol popups by default in newer browser versions, so it's weird that it's blocking execution. are you using the newer headless mode flag or the legacy one?