How to handle browser notification using robot framework

This below piece of code has been tried and its not working.
Launch Browser ${SiteURL} ${Browser}
Enter Username ${User}
Enter Password ${Pwd}
Login
${options}= Evaluate sys.modules[‘selenium.webdriver.chrome.options’].Options() sys
Call Method ${options} add_argument --disable-notifications
Call Method ${options} add_argument --disable-infobars
Call Method ${options} add_argument start-maximized
Call Method ${options} add_argument --disable-extensions
${driver}= Create Webdriver Chrome options=${options}

Try to change the first line to:

${options}=  Evaluate  sys.modules['selenium.webdriver'].ChromeOptions()  sys

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

I have the same problem, I am not able to allow the notifications. This part: Call Method ${options} add_argument --disable-notifications only kind of hide the notification window but doesn’t take the allow action.
Could anyone else help more with this topic?

I hope this is not too late. To fix this problem just add this line to your chrome options:

Call Method ${options} add_argument --use-fake-ui-for-media-stream
This will fix your issue :wink:

Hello,
Did you ever find a solution for this?