InterfaceIDialog
Interface to implement for dialogs to be monitored and handled by the DialogMonitor object.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public interface IDialog
Derived Classes:
Properties
CurrentState
The dialogs current state. This property is Managed by the dialog monitor. Implementors should simply provide a private field to store this value for get/set operations.
Declaration
DialogCurrentState CurrentState { get; set; }
Property Value
ErrorText
When a dialog encounters an error and needs to abort, this property is set
HandleCount
Gets/Sets the number of times this dialog has been handled.
HandlerDelegate
Gets/Sets a dialog handler delegate that will be used instead of the Handle() function.
Declaration
DialogHandlerDelegate HandlerDelegate { get; set; }
Property Value
InitializationTime
Gets/Sets the time to before handling of the dialog starts.
SkipHandling
Gets/Sets a dialog delegate that will be used if handling dialog will be skipped.
Methods
Handle()
If a HandlerDelegate is set, this function should call the delegate, otherwise handle the dialog itself.
Declaration
void Handle()
IsDialogActive(WindowCollection)
Whether the dialog is active or not.
Declaration
bool IsDialogActive(WindowCollection dialogs)
Parameters
dialogs
The list of dialogs present on the desktop.
Returns
True/False whether the dialog is active/present.
MatchesUIAutomationElement(AutomationElement)
Detect whether this UI element completes the awaited conditions. For situations where window handles do not or need not apply.
Declaration
bool MatchesUIAutomationElement(AutomationElement element)
Parameters
element
Returns