webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Add 'Get Notification Window' method to Web Driver spec

Open andreastt opened this issue 9 years ago • 3 comments

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29695

Alex:

Need a support of window.Notification() by Web Driver for test automation.

I have created a request to SeleniumHQ team (https://github.com/SeleniumHQ/selenium/issues/2259) and reply was: "Closing this issue as we will not be adding any new features that are not defined in the W3C spec."

Could it be added to WebDriver Spec? Thank you.

andreastt avatar Oct 04 '16 13:10 andreastt

Moving to level 2. No existing implementations offer this functionality, and it's not been discussed at the face to face sessions.

shs96c avatar Oct 05 '16 09:10 shs96c

Has there been any more interest in or discussion about adding interaction with browser level notifications to the spec?

The specific use-case in mind concerns the camera and microphone permission notification. Interaction with this notification is needed to fully end-to-end test all code paths of a real-time audio/video web app. The most common scenario might be a user blocking access to the camera or mic and then allowing access later on within a session. This test case isn't currently possible with WebDriver. The ability to interact with a media permissions notification, as well as prompt the notification dialog programmatically, would allow a WebDriver instance to test such a scenario.

vipyne avatar Oct 05 '21 18:10 vipyne

Handling permissions is meanwhile covered by https://w3c.github.io/permissions-automation/. The implementation so far has only be done for Chrome (see wpt test results.

So I assume this allows us to close this issue? @jgraham do you have any other feedback?

whimboo avatar Oct 06 '21 08:10 whimboo