ClassDialogMonitor
Class implementation for a dialog monitor to handle dialogs during execution.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class DialogMonitor
Inheritance: objectDialogMonitor
Constructors
DialogMonitor()
Create a new DialogMonitor object and start the monitoring.
Declaration
public DialogMonitor()
DialogMonitor(bool)
Create a new DialogMonitor object, associated with the current Manager
Declaration
public DialogMonitor(bool startMonitoring)
Parameters
startMonitoring
Whether to start monitoring the dialogs. If false, monitoring can start by calling Start().
DialogMonitor(bool, Manager)
Create a new DialogMonitor object, associated with a specific Manager
Properties
Dialogs
Gets the collection of dialogs the monitor is monitoring.
Declaration
public ReadOnlyCollection<IDialog> Dialogs { get; }
Property Value
IsMonitoring
Gets whether the DialogMonitor object is currently monitoring dialogs or not.
Methods
AddDialog(IDialog)
Add a dialog to be monitored.
Declaration
public void AddDialog(IDialog dialog)
Parameters
dialog
The dialog to add.
GetAllDialogs()
Returns a collection of all top level dialogs of the current desktop.
Declaration
public static WindowCollection GetAllDialogs()
Returns
The collection of dialogs.
RemoveDialog(IDialog)
Remove a single dialog from the list of dialogs to monitor.
RemoveDialogs(params IDialog[])
Remove any number of dialogs from the list of dialogs to monitor.
Declaration
public void RemoveDialogs(params IDialog[] specifiedDialogsToRemove)
Parameters
specifiedDialogsToRemove
IDialog[]
The dialogs to remove. If empty, it will remove all of them.
Events
UnexpectedDialogEvent
Declaration
public event EventHandler<WindowEventArgs> UnexpectedDialogEvent
Event Value