Forum Discussion

TestQA1's avatar
TestQA1
Frequent Contributor
4 years ago

Clicking Folder on Windows Desktop

Hi Folks,   I'm new to TestComplete andhave been trying to create a Javascript that could double click on the Folder on Windows Desktop.   I can see it could be accessed using SysListView32, Fold...
  • ApplePen's avatar
    4 years ago

    You could do it like the codes.

    var pcDesktop = Aliases.explorer.PCdesktop.desktop.listView;
    for(i = 0;i < pcDesktop.wItemCount; i++){
      if(equal(pcDesktop.wItem(i),foldername)){
        pcDesktop.DbClickItem(i);
      }else{
       continue;
      }
    }

    Or A another simple way to do that like this. You could use DbClickItem method.

    xxx.Window("SysListView32", "FolderView", 1).DblClickItem(folderName);