-4

I am using Robot IDE for creating robot automation test scripts.

For my test the browser is asking for permission to show notification. Since it's a web-based alert dialog I'm not able to access it in my robot script. If I am clicking on the "Allow" button manually then it proceeds to the test and passes successfully. I need to allow the browser to show notification with my robot script.enter image description here

As you can see from the image I want to click on the Allow button which is necessary to go ahead in my test.

So can anyone know how can I click on the "Allow" button of the browser confirmation popup via the robot test script?

Nikhil Wagh
  • 1,376
  • 1
  • 24
  • 44
Aditi
  • 1
  • 2
  • Welcome to StackOverflow, Please go through this: https://stackoverflow.com/help/how-to-ask Also, make sure to add some code and show what you've tried so far. – Nikhil Wagh Oct 24 '19 at 12:16

2 Answers2

0

You could just allow or block all the notifications, in this way no pop up will appear

https://support.google.com/chrome/answer/3220216?co=GENIE.Platform%3DDesktop&hl=en

AntonioMJ
  • 134
  • 5
0

You can disable them using DesiredCapabilities. In this geolocation case, you should use disable-geolocation option.

Here's an example: How can I handle Geo Location popup in browser using selenium webdriver?

asprtrmp
  • 1,034
  • 5
  • 14