ClassOnBeforeUnloadDialog
Class to handle javascript onbeforeunload Confirm Navigation dialogs.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class OnBeforeUnloadDialog : BaseDialog, IDialog
Inheritance: objectBaseDialogOnBeforeUnloadDialog
Implements:
Inherited Members
Constructors
OnBeforeUnloadDialog(Browser, DialogButton)
Create a new instance of OnBeforeUnloadDialog class.
Declaration
public OnBeforeUnloadDialog(Browser parentBrowser, DialogButton dismissButton)
Parameters
parentBrowser
The parent browser.
dismissButton
The dismiss button.
Exceptions
Thrown when dismiss buton has invalid value.
Methods
CreateOnBeforeUnloadDialog(Browser, DialogButton)
Creates a OnBeforeUnloadDialog object to handle the dialog.
Declaration
public static OnBeforeUnloadDialog CreateOnBeforeUnloadDialog(Browser parentBrowser, DialogButton dismissButton)
Parameters
parentBrowser
The parent browser.
dismissButton
The dismiss button to use.
Returns
A new OnBeforeUnloadDialog object.
Handle()
Handle this dialog.
Declaration
public override void Handle()
Overrides
Implements
IsDialogActive(WindowCollection)
Whether the dialog is active or not.
Declaration
public override bool IsDialogActive(WindowCollection dialogs)
Parameters
dialogs
The list of dialogs on the desktop.
Returns
True/False whether the 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