Handling Alert Dialogs
Telerik Testing Framework includes native support for dialog handling (under the ArtOfTest.WebAii.Win32.Dialogs namespace) with built-in handlers of the common browser dialogs. The JavaScript Alert dialog is one of the covered dialogs with built-in handlers. The below code demonstrates how to implement the handler and use it to handle the dialog.
Important!
Reference the ArtOfTest.WebAii.Win32.Dialogs.dll in the project and insert it as using in the code file.
using ArtOfTest.WebAii.Win32.Dialogs;