ClassDownloadNotificationBar
Base class for handling download notification bar.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public abstract class DownloadNotificationBar : BaseDialog, IDialog
Inheritance: objectBaseDialogDownloadNotificationBar
Derived Classes:
Implements:
Inherited Members
Constructors
DownloadNotificationBar(Browser, DialogButton)
Create a new instance of DownloadNotificationBar class.
Declaration
public DownloadNotificationBar(Browser parentBrowser, DialogButton dismissButton)
Parameters
parentBrowser
The parent browser.
dismissButton
The dismiss button.
Fields
NotificationBar
Reference to notification bar element. If this field is null Handle method will fail.
Declaration
protected AutomationElement NotificationBar
Field Value
Methods
GetCancelButton(AutomationElement)
Get the notification bar cancel button.
Declaration
public static AutomationElement GetCancelButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The cancel button.
GetCloseButton(AutomationElement)
Get the notification bar close button.
Declaration
public static AutomationElement GetCloseButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The close button.
GetDismissButton(AutomationElement)
Get the notification bar dismiss button.
Declaration
public static AutomationElement GetDismissButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The dismiss button.
GetNotificationBar(AutomationElement)
Get the notification bar element.
Declaration
public static AutomationElement GetNotificationBar(AutomationElement element)
Parameters
element
An automation element to search into.
Returns
The notification bar element.
GetNotificationBarText(AutomationElement)
Get the notification bar text element.
Declaration
public static AutomationElement GetNotificationBarText(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The text element.
GetOpenButton(AutomationElement)
Get the notification bar open button.
Declaration
public static AutomationElement GetOpenButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The open button.
GetOpenFolderButton(AutomationElement)
Get the notification bar open folder button.
Declaration
public static AutomationElement GetOpenFolderButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The open folder button.
GetRunButton(AutomationElement)
Get the notification bar run button.
Declaration
public static AutomationElement GetRunButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The run button.
GetSaveAsButton(AutomationElement)
Get the notification bar save as button.
Declaration
public static AutomationElement GetSaveAsButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The save as button.
GetSaveButton(AutomationElement)
Get the notification bar save button.
Declaration
public static AutomationElement GetSaveButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The save button.
GetViewDownloadsButton(AutomationElement)
Get the notification bar view downloads button.
Declaration
public static AutomationElement GetViewDownloadsButton(AutomationElement anyParentElement)
Parameters
anyParentElement
An automation element to search into.
Returns
The view downloads button.
Handle()
Handle the dialog. If HandlerDelegate is set, use the delegate
Declaration
public override void Handle()
Overrides
Implements
IsDialogActive(WindowCollection)
Detect whether this dialog is active or not. Mostly used for HWND-based controls, such as top-level windows.
Declaration
public override bool IsDialogActive(WindowCollection dialogs)
Parameters
dialogs
The list of all dialogs.
Returns
True/False whether this dialog is active or not.
Overrides
Implements