ITargetLocator Alert Method WebDriver
Switches to the currently active modal dialog for this particular driver instance.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

IAlert Alert()

Return Value

A handle to the dialog.
See Also