Comment on page
FileDialog
A class for a windows FileDialog to open or save files.
// FileDialog example for saving "myFile.txt"
var fileDialog = new FileDialog(t, App.SystemHelpers);
fileDialog.WaitForAppear();
fileDialog.SetFileName("myFile.txt");
fileDialog.Save();
Namespace: Progile.TRIO.EnvironmentModel
Assembly: Progile.TRIO.EnvironmentModel.Windows (in Progile.TRIO.EnvironmentModel.Windows.dll)
Object
Progile.TRIO.BaseModel.OnScreenElement
Progile.TRIO.BaseModel.BaseScreen
Progile.TRIO.EnvironmentModel.Window
Progile.TRIO.EnvironmentModel.FileWindow
Syntax:
public FileDialog(
ITester t,
ISystemHelpers systemHelpers
)
Parameter | Description |
t | The tester interface. |
systemHelper | An instance of the ISystemHelpers interface that allows interaction with the SUT operating system. |
Name | Description |
Cancels the file dialog. | |
Opens the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open. | |
Saves to the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open. | |
Sets the file name and/or path to the parameter fileNameWithPath |
Name | Description |
The text box to enter the file name (in currently shown folder) or full file path (for any other folder). | |
The dropown below the FileName to select the file type as which the file shall be saved.
Note: Currently not supported for Win7 and Win8. | |
The text box to enter the path for the folder to be shown.
Note: Currently not supported for Win7. Use FileName instead. | |
A label referring to any warning dialog that might be shown after saving or opening. |
Last modified 6mo ago