07-15-2009, 03:01 PM
Hello,
I am using QTP 9.2 and I am trying to get the total number of files present inside a folder in Windows 7 OS.
In Windows Vista OS I am getting the count using "GetItemsCount" :
Since, XP and Vista OS is recognizing any folder window as Class = WinListView
But, in Win7 OS QTP is recognizing the folder window as Class = WinObject, as a result I am unable to use GetItemCount in case of Win7 OS.
It will be nice if anyone can help me on this.
Thanks,
Arijit Dhar
I am using QTP 9.2 and I am trying to get the total number of files present inside a folder in Windows 7 OS.
In Windows Vista OS I am getting the count using "GetItemsCount" :
Code:
totalcount = Windows("Object").WinListView("SysListView32").GetItemsCount
Since, XP and Vista OS is recognizing any folder window as Class = WinListView
But, in Win7 OS QTP is recognizing the folder window as Class = WinObject, as a result I am unable to use GetItemCount in case of Win7 OS.
It will be nice if anyone can help me on this.
Thanks,
Arijit Dhar