Forum Discussion

visalakshi_sesh's avatar
visalakshi_sesh
Occasional Contributor
13 years ago

Working with 2 explorer window of same window caption

Hi All,


I need to perform an operation with 2 explorer windows which has same caption. Our application provides a menu option File -> New Window from here, which launches the same window as second explorer.


E.g.:


The first explorer instance will be:


Sys.Process("Explorer").Window("CabinetWClass", "Search Results", 1)


and the instance of second explorer will be as:


Sys.Process("Explorer").Window("CabinetWClass", "Search Results", 2)


The instance of both the explorers remains the same. Only the instance of 'CabinetWClass' changes according to the active window.Due to this, a warning message 'Ambigous window recognition' is logged in the testlog and is causing the interruptions in script execution. Kindly help me to resolve this issue.

1 Reply

  • Hi,



    Try mapping your windows by their children.



    Also, is there a reason to use Explorer's GUI in your tests? If you need to work with files and directories on your HDD, it is more reliable to access them directly.