What is this type of notification and how do I stop it from appearing using Selenium?

45 views
Skip to first unread message

David Barnes

unread,
Jul 24, 2019, 9:06:48 AM7/24/19
to Selenium Users
Hi all,

I have a test running in Galaxy S7 Chrome, often this prompt appears over the site I'm testing. I'm not sure if it's preventing me from conducting the test but I need to rule it out as I troubleshoot.

I first need to know what this is called, because I know it's not a prompt generated by JavaScript in the DOM, I understand it to be a built-in Chrome feature.

Is this called a Chrome notification? Or is it a push notification? I need to know what it is to research how to prevent it from appearing, or at the very least, tap on Allow/Block to get rid of it.

I've tried setting ChromeOptions to --disable-notifications but nothing's changed, this prompt still appears...


Capture.PNG


thank you

Joe Ward

unread,
Jul 24, 2019, 10:26:58 AM7/24/19
to seleniu...@googlegroups.com
https://peter.sh/experiments/chromium-command-line-switches/ says this is the correct argument for what you are trying to do.

What Chrome/Chomedriver version are you using? Can you show us the code you are trying to use?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b4c7a078-d22b-4135-bac5-65827d32d709%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages