Forum Discussion
AlexeyKolosov
15 years agoStaff
Hi,
TestComplete provides special support for standard dialogs. The following script opens a file in Notepad:
function Test1()
{
var notepad;
var comboBoxEx32;
var edit;
notepad = Sys.Process("notepad");
notepad.Window("Notepad", "*").MainMenu.Click("File|Open...");
notepad.Window("#32770", "Open").OpenFile("c:\\temp\\work.txt");
}
Please see the OpenFile Method and Working With Open File and Save File Dialogs help topics for more information.
Related Content
Recent Discussions
- 8 hours agomarkos