Forum Discussion

deschatr's avatar
deschatr
Copper Contributor
Nov 29, 2024

Automation testing for ToastNotifications

I am testing a WPF application, and I want to access a button on a Toast Notification.

I am using the Microsoft UI Automation framework, but cannot locate the Notification window in the RawView tree or from the RootElement (.Find*). However tools like Inspect do find the Notification window. => what is the issue here?

I could use NotificationListener, but that doesn't give access to any button. Correct me if I'm wrong.

So how can I access those Toast Notifications with MS UI Automation?

No RepliesBe the first to reply

Resources