After developers of PyPpeteer claims how to handle Dialog and Alert box after them this should be the code which close and dismiss if you want cancel the Dialog.
page.on('dialog', lambda dialog: asyncio.ensure_future(close_dialog(dialog)))await page.goto('https://open.spotify.com/', {'waitUntil' : 'domcontentloaded'})
If you place this code before calling URL and load the page will open , then dialog will show and it will maybe close Dialog but with it it close the browser too, which we don't want, so I asked on GitHub them and since nobody is interesting in this very big issue so I'm here to tell you guys it is failed.
See this image Spotify annoying Dialog
I'm using btw external real Brave browser and I also manage the real profile to load with extensions which also should auto close this alerts and dialogs but frankly nothing is closing that crazy annoying Spotify message, I don't use proxies or VPN or other things which may trigger this alerts but it is really so frustrating as I am building bot to made playlist and I'm able to login but after my code stuck and can not bypass it other then manually.
I have tired as I explained there to put the code BEFORE URL opens but it will close the main browser too, if putting this AFTER the URL loads and Dialog shows it will does nothing at all.
PS: maybe it works on other website but I'm dealing with Spotify which also protect from inspecting the elements and this Dialog is not in the HTML DOM too.