ClassPromptDialog
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class PromptDialog : BaseDialog, IDialog
Inheritance: objectBaseDialogPromptDialog
Implements:
Inherited Members
Constructors
PromptDialog(Browser, DialogButton, string)
Declaration
public PromptDialog(Browser parentBrowser, DialogButton dismissButton, string text)
Parameters
parentBrowser
dismissButton
text
Fields
Properties
Methods
CreatePromptDialog(Browser, DialogButton, string)
Creates a prompt dialog.
Declaration
public static PromptDialog CreatePromptDialog(Browser parentBrowser, DialogButton dismissButton, string text)
Parameters
parentBrowser
The current browser.
dismissButton
Dismiss button.
text
Text of the propmpt.
Returns
Prompt dialog for a specific browser.
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
MatchesUIAutomationElement(AutomationElement)
Matches UI automation element.
Declaration
public override bool MatchesUIAutomationElement(AutomationElement element)
Parameters
element
The element to check against.
Returns
Overrides
Implements