ClassAlertDialog
Class to handle javascript alert dialogs.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class AlertDialog : BaseDialog, IDialog
Inheritance: objectBaseDialogAlertDialog
Implements:
Inherited Members
Constructors
AlertDialog(Browser, DialogButton)
Create a new AlertDialog object to handle the dialog.
Declaration
public AlertDialog(Browser parentBrowser, DialogButton dismissButton)
Parameters
parentBrowser
The parent browser.
dismissButton
The dismiss button to use.
Methods
CreateAlertDialog(Browser, DialogButton)
Create new new instance of AlertDialog class.
Declaration
public static AlertDialog CreateAlertDialog(Browser parentBrowser, DialogButton dismissButton)
Parameters
parentBrowser
The parent browser.
dismissButton
The dismiss button to use.
Returns
A new instance of AlertDialog class.
Handle()
Handle this dialog.
Declaration
public override void Handle()
Overrides
Implements
IsDialogActive(WindowCollection)
Whether the dialog is active or not.
Declaration
public override bool IsDialogActive(WindowCollection dialogs)
Parameters
dialogs
The list of dialogs on the desktop.
Returns
True/False whether the dialog is active or not.
Overrides
Implements
MatchesUIAutomationElement(AutomationElement)
Matches UI automation element.
Declaration
public override bool MatchesUIAutomationElement(AutomationElement element)
Parameters
element
The element to check against.
Returns
Overrides
Implements