ClassSaveAsDialog
SaveAs Dialog handler.
Definition
Namespace:ArtOfTest.WebAii.Win32.Dialogs
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class SaveAsDialog : BaseDialog, IDialog
Inheritance: objectBaseDialogSaveAsDialog
Implements:
Inherited Members
Constructors
SaveAsDialog(Browser, DialogButton, string, Desktop)
Create the dialog passing it the parent browser and the button to use to dismiss the instance of this dialog.
Declaration
protected SaveAsDialog(Browser parentBrowser, DialogButton dismissButton, string filePath, Desktop desktopObject)
Parameters
parentBrowser
The parent browser.
dismissButton
The button to use to dismiss the dialog. Accepts SAVE or CANCEL.
filePath
The full file path to the save location.
desktopObject
The desktop object.
SaveAsDialog(WpfApplication, DialogButton, string, string, Desktop)
Returns an Save As Dialog for use with WPF applications.
Declaration
protected SaveAsDialog(WpfApplication application, DialogButton dismissButton, string filePath, string title, Desktop desktopObject)
Parameters
application
The host application.
dismissButton
The dismiss button to use. Accepts SAVE or CANCEL.
filePath
The location of the file to open.
title
The title of the dialog. Pass string.Empty to use default value or overwrite it in case of custom dialog.
desktopObject
Reference to a desktop object.
Properties
SaveFileName
Gets/Sets the save file name/path to use if you are saving the file. Else set to string.empty.
Methods
CreateSaveAsDialog(Browser, DialogButton, string, Desktop)
Returns an Save As Dialog for use with web applications.
Declaration
public static SaveAsDialog CreateSaveAsDialog(Browser parentBrowser, DialogButton dismissButton, string filePath, Desktop desktopObject)
Parameters
parentBrowser
Parent browser object.
dismissButton
The dismiss button to use. Accepts OPEN or CANCEL.
filePath
The location of the file to open.
desktopObject
Desktop object.
Returns
A new SaveAsDialog.
CreateSaveAsDialog(WpfApplication, DialogButton, string, string)
Returns an Save As Dialog for use with WPF applications.
Declaration
public static SaveAsDialog CreateSaveAsDialog(WpfApplication application, DialogButton dismissButton, string filePath, string title = null)
Parameters
application
The host application.
dismissButton
The dismiss button to use. Accepts SAVE or CANCEL.
filePath
The location of the file to open.
title
The title of the dialog. Pass string.Empty to use default value or overwrite it in case of custom dialog.
Returns
A new SaveAsDialog.
Handle()
This is called by the DialogMonitor whenever IsDialogActive returns true.
Declaration
public override void Handle()
Overrides
IsDialogActive(WindowCollection)
Check whether the dialog is present or not. This function is called by the dialogmonitor object
Declaration
public override bool IsDialogActive(WindowCollection dialogs)
Parameters
dialogs
This is a list of dialog passes in the by the DialogMonitor object.
Returns
True/False whether this dialog is present.
Overrides