1

enter image description here

How to handle allow pop up on the chrome browser by Selenium Java

I'm using

chrome=69.0.3497.100
Driver info: chromedriver=2.35.528161
Selenium-jave: 3.14.0

Note: I have tried every possible solution from: How to click Allow on Show Notifications popup using Selenium Webdriver

and and more

Al Imran
  • 882
  • 7
  • 29
  • ......Why are you trying to do this. This is a user interaction that require client side consent. Why are you trying to by pass this. I can only think of nefarious reasons. Also forcing the allow or taking away user consent for sensitive data is very very illegal. –  Oct 12 '18 at 02:47
  • Really appreciated your security concern, but it's required for testing! – Al Imran Oct 14 '18 at 05:52

1 Answers1

0

Add the following capability:

  • avoids the need to grant camera/microphone permissions.

--use-fake-ui-for-media-stream

Infern0
  • 2,565
  • 1
  • 8
  • 21