Class
AlertDialog

Class to handle javascript alert dialogs.

Definition

Namespace:ArtOfTest.WebAii.Win32.Dialogs

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class AlertDialog : BaseDialog, IDialog

Inheritance: objectBaseDialogAlertDialog

Implements: IDialog

Inherited Members BaseDialog.m_browserVersionMajorBaseDialog.ValidatePid(int)BaseDialog.ValidateReadFileAccess(string, string, out string)BaseDialog.ValidatePaths(string, out string)BaseDialog.GetFilePaths(string)BaseDialog.SetDialogWindow(Window)BaseDialog.IsDialogActiveByTitle(WindowCollection, string)BaseDialog.IsDialogActiveByTitle(WindowCollection, string, bool)BaseDialog.IsRejectedViaRegexOrExactMatch(string, object)BaseDialog.IsDialogActiveByTitleAndTextContent(WindowCollection, string, bool, string)BaseDialog.ToString()BaseDialog.ResetHandleCount()BaseDialog.WaitUntilHandled(int)BaseDialog.WaitUntilHandled()BaseDialog.WaitUntilHandled(int, int, bool)BaseDialog.WaitUntilAnyHandled(IEnumerable<BaseDialog>, int, long, bool)BaseDialog.OnBeforeHandle(EventArgs)BaseDialog.ParentBrowserBaseDialog.ErrorTextBaseDialog.CurrentStateBaseDialog.WindowBaseDialog.HandleCountBaseDialog.HandlerDelegateBaseDialog.DismissButtonBaseDialog.SkipHandlingBaseDialog.TagsBaseDialog.InitializationTimeBaseDialog.BeforeHandle

Constructors

AlertDialog(Browser, DialogButton)

Create a new AlertDialog object to handle the dialog.

Declaration

cs-api-definition
public AlertDialog(Browser parentBrowser, DialogButton dismissButton)

Parameters

parentBrowser

Browser

The parent browser.

dismissButton

DialogButton

The dismiss button to use.

Methods

CreateAlertDialog(Browser, DialogButton)

Create new new instance of AlertDialog class.

Declaration

cs-api-definition
public static AlertDialog CreateAlertDialog(Browser parentBrowser, DialogButton dismissButton)

Parameters

parentBrowser

Browser

The parent browser.

dismissButton

DialogButton

The dismiss button to use.

Returns

AlertDialog

A new instance of AlertDialog class.

Handle()

Handle this dialog.

Declaration

cs-api-definition
public override void Handle()

Overrides BaseDialog.Handle()

Implements IDialog.Handle()

IsDialogActive(WindowCollection)

Whether the dialog is active or not.

Declaration

cs-api-definition
public override bool IsDialogActive(WindowCollection dialogs)

Parameters

dialogs

WindowCollection

The list of dialogs on the desktop.

Returns

bool

True/False whether the dialog is active or not.

Overrides BaseDialog.IsDialogActive(WindowCollection)

Implements IDialog.IsDialogActive(WindowCollection)

MatchesUIAutomationElement(AutomationElement)

Matches UI automation element.

Declaration

cs-api-definition
public override bool MatchesUIAutomationElement(AutomationElement element)

Parameters

element

AutomationElement

The element to check against.

Returns

bool

Overrides BaseDialog.MatchesUIAutomationElement(AutomationElement)

Implements IDialog.MatchesUIAutomationElement(AutomationElement)