A base implementation for a dialog.
Inheritance Hierarchy
ArtOfTest.WebAii.Win32.DialogsBaseDialog
More...
Namespace: ArtOfTest.WebAii.Win32.Dialogs
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
The BaseDialog type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BaseDialog(Browser, DialogButton) |
Create a new dialog.
| |
BaseDialog(WpfApplication, DialogButton) | Initializes a new instance of the BaseDialog class |
Properties
Name | Description | |
---|---|---|
CurrentState |
Gets/Sets the dialog current state. State is handled my DialogMonitor.
| |
DismissButton |
Gets/Sets the dismiss button to use to knock down this dialog.
| |
ErrorText | ||
HandleCount |
Gets/Sets the number of times this dialog has been handled.
| |
HandlerDelegate |
Gets/Sets the dialog custom handler
| |
InitializationTime |
Gets/Sets the time to before handling of the dialog starts.
| |
ParentBrowser |
The parent browser object of this dialog
| |
ParentProcessId |
Parent process id of the browser and all the dialogs that this object should handle.
| |
SkipHandling | ||
Tags |
Custom tags for miscellaneous use.
| |
Window |
The dialog Window object.
|
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Handle |
Handle the dialog. If HandlerDelegate is set, use the delegate
| |
IsDialogActive |
Detect whether this dialog is active or not.
Mostly used for HWND-based controls, such as top-level windows.
| |
IsDialogActiveByTitle(WindowCollection, String) |
Get whether the dialog is active based on its title.
| |
IsDialogActiveByTitle(WindowCollection, String, Boolean) |
Get whether the dialog is active base on its title.
| |
IsDialogActiveByTitleAndTextContent |
Gets whether a dialog is active or not using the title and caption of an inner window contained
in the dialog
| |
IsRejectedViaRegexOrExactMatch | ||
MatchesUIAutomationElement | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnBeforeHandle | ||
ResetHandleCount |
Resets the handle count back to zero.
| |
SetDialogWindow |
Set the dialog window.
| |
ToString | (Overrides ObjectToString.) | |
WaitUntilAnyHandled | ||
WaitUntilHandled |
Waits for the dialog to be handled atleast once. Always performs a reset at the beginning of the wait.
Will use the Settings.ClientReadyTimeout.
| |
WaitUntilHandled(Int32) |
Waits for the dialog to be handled atleast once. Always performs a reset at the being of the wait.
| |
WaitUntilHandled(Int32, Int32, Boolean) |
Waits for the dialog to be handled handleCount. You can optionally reset the handle count before waiting.
|
Events
Name | Description | |
---|---|---|
BeforeHandle |
Fields
Name | Description | |
---|---|---|
m_browserVersionMajor |
The major version of the browser
|
See Also
Reference
Inheritance Hierarchy
ArtOfTest.WebAii.Win32.DialogsBaseDialog
ArtOfTest.WebAii.Win32.DialogsAlertDialog
ArtOfTest.WebAii.Win32.DialogsConfirmDialog
ArtOfTest.WebAii.Win32.DialogsDownloadNotificationBar
ArtOfTest.WebAii.Win32.DialogsFFOpenDownloadDialog
ArtOfTest.WebAii.Win32.DialogsFileUploadDialog
ArtOfTest.WebAii.Win32.DialogsGenericDialog
ArtOfTest.WebAii.Win32.DialogsIEDownloadCompleteDialog
ArtOfTest.WebAii.Win32.DialogsIEDownloadDialog
ArtOfTest.WebAii.Win32.DialogsLogonDialog
ArtOfTest.WebAii.Win32.DialogsOnBeforeUnloadDialog
ArtOfTest.WebAii.Win32.DialogsOpenFileDialog
ArtOfTest.WebAii.Win32.DialogsPromptDialog
ArtOfTest.WebAii.Win32.DialogsSafariDownloadDialog
ArtOfTest.WebAii.Win32.DialogsSaveAsDialog