ClassGenericDialog
A generic dialog handler that can be used for quick and easy way to write a dialog handler for a simply dialog.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class GenericDialog : BaseDialog, IDialog
Inheritance: objectBaseDialogGenericDialog
Implements:
Inherited Members
Constructors
GenericDialog(Browser, string, bool)
Create a new generic dialog.
Declaration
public GenericDialog(Browser parentBrowser, string title, bool partialTitle)
Parameters
parentBrowser
The parent browser.
title
The title of the dialog to handle.
partialTitle
Whether the title provided is partial or complete.
Remarks
Will simply close this dialog.
GenericDialog(Browser, string, bool, int)
Create a new generic dialog
Declaration
public GenericDialog(Browser parentBrowser, string title, bool partialTitle, int buttonId)
Parameters
parentBrowser
The parent browser.
title
The title of the dialog.
partialTitle
Whether the title provided is partial or complete.
buttonId
The button id to click on the dialog.
GenericDialog(Browser, string, bool, int, string)
Create a new generic dialog
Declaration
public GenericDialog(Browser parentBrowser, string title, bool partialTitle, int buttonId, string childTextContent)
Parameters
parentBrowser
The parent browser.
title
The title of the dialog.
partialTitle
Whether the title provided is partial or complete.
buttonId
The button id to click on the dialog.
childTextContent
A partial text that might be found on that dialog. This can help isolate this dialog from other dialogs that might have similar titles.
GenericDialog(Browser, string, bool, string)
Create a new generic dialog.
Declaration
public GenericDialog(Browser parentBrowser, string title, bool partialTitle, string childTextContent)
Parameters
parentBrowser
The parent browser.
title
The title of the dialog to handle.
partialTitle
Whether the title provided is partial or complete.
childTextContent
A partial text that might be found on that dialog. This can help isolate this dialog from other dialogs that might have similar titles.
GenericDialog(Browser, string, bool, string, int, string)
All-encompassing base constructor.
Declaration
public GenericDialog(Browser parentBrowser = null, string title = "", bool partialTitle = false, string childTextContent = "", int buttonId = -1, string buttonText = "")
Parameters
parentBrowser
title
partialTitle
childTextContent
buttonId
buttonText
GenericDialog(Browser, string, bool, string, string)
Create a new generic dialog.
Declaration
public GenericDialog(Browser parentBrowser, string title, bool partialTitle, string buttonText, string childTextContent)
Parameters
parentBrowser
The parent browser.
title
The title of the dialog.
partialTitle
Whether the title provided is partial or complete.
buttonText
The button caption to click.
childTextContent
A partial text that might be found on that dialog. This can help isolate this dialog from other dialogs that might have similar titles.
GenericDialog(Browser, string, string, bool)
Create a new generic dialog.
Declaration
public GenericDialog(Browser parentBrowser, string title, string buttonText, bool partialTitle)
Parameters
parentBrowser
The parent browser.
title
The title of the dialog.
buttonText
The button caption to click.
partialTitle
Whether the title provided is partial or complete.
GenericDialog(WpfApplication, string, bool)
Create a new generic dialog.
Declaration
public GenericDialog(WpfApplication parentApp, string title, bool partialTitle)
Parameters
parentApp
The parent WpfApplication.
title
The title of the dialog to handle.
partialTitle
Whether the title provided is partial or complete.
Remarks
Will simply close this dialog.
GenericDialog(WpfApplication, string, bool, int)
Create a new generic dialog
Declaration
public GenericDialog(WpfApplication parentApp, string title, bool partialTitle, int buttonId)
Parameters
parentApp
The parent WpfApplication.
title
The title of the dialog.
partialTitle
Whether the title provided is partial or complete.
buttonId
The button id to click on the dialog.
GenericDialog(WpfApplication, string, bool, int, string)
Create a new generic dialog
Declaration
public GenericDialog(WpfApplication parentApp, string title, bool partialTitle, int buttonId, string childTextContent)
Parameters
parentApp
The parent WpfApplication.
title
The title of the dialog.
partialTitle
Whether the title provided is partial or complete.
buttonId
The button id to click on the dialog.
childTextContent
A partial text that might be found on that dialog. This can help isolate this dialog from other dialogs that might have similar titles.
GenericDialog(WpfApplication, string, bool, string)
Create a new generic dialog.
Declaration
public GenericDialog(WpfApplication parentApp, string title, bool partialTitle, string childTextContent)
Parameters
parentApp
The parent WpfApplication.
title
The title of the dialog to handle.
partialTitle
Whether the title provided is partial or complete.
childTextContent
A partial text that might be found on that dialog. This can help isolate this dialog from other dialogs that might have similar titles.
GenericDialog(WpfApplication, string, bool, string, int, string)
All-encompassing base constructor.
Declaration
public GenericDialog(WpfApplication parentApp = null, string title = "", bool partialTitle = false, string childTextContent = "", int buttonId = -1, string buttonText = "")
Parameters
parentApp
title
partialTitle
childTextContent
buttonId
buttonText
GenericDialog(WpfApplication, string, bool, string, string)
Create a new generic dialog.
Declaration
public GenericDialog(WpfApplication parentApp, string title, bool partialTitle, string buttonText, string childTextContent)
Parameters
parentApp
The parent WpfApplication.
title
The title of the dialog.
partialTitle
Whether the title provided is partial or complete.
buttonText
The button caption to click.
childTextContent
A partial text that might be found on that dialog. This can help isolate this dialog from other dialogs that might have similar titles.
GenericDialog(WpfApplication, string, string, bool)
Create a new generic dialog.
Declaration
public GenericDialog(WpfApplication parentApp, string title, string buttonText, bool partialTitle)
Parameters
parentApp
The parent WpfApplication.
title
The title of the dialog.
buttonText
The button caption to click.
partialTitle
Whether the title provided is partial or complete.
Properties
ButtonId
Gets/Sets the button id to click.
ButtonText
Gets/Sets the button text to click.
ChildTextContext
Gets/Sets the child text of a child window of this dialog.
PartialTitle
Gets/Sets whether the title is partial title.
Methods
Handle()
Handle this generic dialog
Declaration
public override void Handle()
Overrides
IsDialogActive(WindowCollection)
If dialog is active.
Declaration
public override bool IsDialogActive(WindowCollection dialogs)
Parameters
dialogs
The list of all dialogs
Returns
True/False if the dialog is active.
Overrides