Class
DownloadNotificationBar

Base class for handling download notification bar.

Definition

Namespace:ArtOfTest.WebAii.Win32.Dialogs

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public abstract class DownloadNotificationBar : BaseDialog, IDialog

Inheritance: objectBaseDialogDownloadNotificationBar

Derived Classes: EdgeDownloadCompleteNotificationBarEdgeDownloadNotificationBarIE9DownloadCompleteNotificationBarIE9DownloadNotificationBar

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.MatchesUIAutomationElement(AutomationElement)BaseDialog.OnBeforeHandle(EventArgs)BaseDialog.ParentBrowserBaseDialog.ErrorTextBaseDialog.CurrentStateBaseDialog.WindowBaseDialog.HandleCountBaseDialog.HandlerDelegateBaseDialog.DismissButtonBaseDialog.SkipHandlingBaseDialog.TagsBaseDialog.InitializationTimeBaseDialog.BeforeHandle

Constructors

DownloadNotificationBar(Browser, DialogButton)

Create a new instance of DownloadNotificationBar class.

Declaration

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

Parameters

parentBrowser

Browser

The parent browser.

dismissButton

DialogButton

The dismiss button.

Fields

NotificationBar

Reference to notification bar element. If this field is null Handle method will fail.

Declaration

cs-api-definition
protected AutomationElement NotificationBar

Field Value

AutomationElement

Methods

GetCancelButton(AutomationElement)

Get the notification bar cancel button.

Declaration

cs-api-definition
public static AutomationElement GetCancelButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The cancel button.

GetCloseButton(AutomationElement)

Get the notification bar close button.

Declaration

cs-api-definition
public static AutomationElement GetCloseButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The close button.

GetDismissButton(AutomationElement)

Get the notification bar dismiss button.

Declaration

cs-api-definition
public static AutomationElement GetDismissButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The dismiss button.

GetNotificationBar(AutomationElement)

Get the notification bar element.

Declaration

cs-api-definition
public static AutomationElement GetNotificationBar(AutomationElement element)

Parameters

element

AutomationElement

An automation element to search into.

Returns

AutomationElement

The notification bar element.

GetNotificationBarText(AutomationElement)

Get the notification bar text element.

Declaration

cs-api-definition
public static AutomationElement GetNotificationBarText(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The text element.

GetOpenButton(AutomationElement)

Get the notification bar open button.

Declaration

cs-api-definition
public static AutomationElement GetOpenButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The open button.

GetOpenFolderButton(AutomationElement)

Get the notification bar open folder button.

Declaration

cs-api-definition
public static AutomationElement GetOpenFolderButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The open folder button.

GetRunButton(AutomationElement)

Get the notification bar run button.

Declaration

cs-api-definition
public static AutomationElement GetRunButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The run button.

GetSaveAsButton(AutomationElement)

Get the notification bar save as button.

Declaration

cs-api-definition
public static AutomationElement GetSaveAsButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The save as button.

GetSaveButton(AutomationElement)

Get the notification bar save button.

Declaration

cs-api-definition
public static AutomationElement GetSaveButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The save button.

GetViewDownloadsButton(AutomationElement)

Get the notification bar view downloads button.

Declaration

cs-api-definition
public static AutomationElement GetViewDownloadsButton(AutomationElement anyParentElement)

Parameters

anyParentElement

AutomationElement

An automation element to search into.

Returns

AutomationElement

The view downloads button.

Handle()

Handle the dialog. If HandlerDelegate is set, use the delegate

Declaration

cs-api-definition
public override void Handle()

Overrides BaseDialog.Handle()

Implements IDialog.Handle()

IsDialogActive(WindowCollection)

Detect whether this dialog is active or not. Mostly used for HWND-based controls, such as top-level windows.

Declaration

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

Parameters

dialogs

WindowCollection

The list of all dialogs.

Returns

bool

True/False whether this dialog is active or not.

Overrides BaseDialog.IsDialogActive(WindowCollection)

Implements IDialog.IsDialogActive(WindowCollection)