Forum Discussion
TanyaYatskovska
Alumni
11 years agoHi Sergei,
As far as I understand, the window you are having issues with is a regular Windows Open window, right?
There have been big changes in this dialog since Windows XP. Now, this is the DirectUIHWND dialog. I guess that TestExecute doesn't see anything located inside this dialog. That's why, you see only the Exists property of the tree. I bet its False. Check what the value of the WndClass property of this object is (I suppose this is the main dialog):
Alias: Aliases.SLV_sql.dlg_4.SHBrowseForFolderShellNameSpaceControl
If the value is DirectUIHWND, you need to modify your project in TestComplete: adding this class name under the MSAA project properties. This will allow TestComplete and TestExecute to recognize objects. However, I'm not sure whether the recognition will be similar to the one you see on Windows XP. Perhaps, you will need to modify your test a bit.
BTW, you can consider using the OpenFile Method to open the needed files. Refer to the "Working With Open File and Save File Dialogs" article for details.
As far as I understand, the window you are having issues with is a regular Windows Open window, right?
There have been big changes in this dialog since Windows XP. Now, this is the DirectUIHWND dialog. I guess that TestExecute doesn't see anything located inside this dialog. That's why, you see only the Exists property of the tree. I bet its False. Check what the value of the WndClass property of this object is (I suppose this is the main dialog):
Alias: Aliases.SLV_sql.dlg_4.SHBrowseForFolderShellNameSpaceControl
If the value is DirectUIHWND, you need to modify your project in TestComplete: adding this class name under the MSAA project properties. This will allow TestComplete and TestExecute to recognize objects. However, I'm not sure whether the recognition will be similar to the one you see on Windows XP. Perhaps, you will need to modify your test a bit.
BTW, you can consider using the OpenFile Method to open the needed files. Refer to the "Working With Open File and Save File Dialogs" article for details.