You can identify each window uniquely given that each window has at least a unique component.
For example: One window may have a button with the tag ''Save As'' and another with the tag ''Save''. To uniquely identify these windows, you need to modify the tag manually to point to the unique component.
In this case: Window 1 will have the tag of ''[BrowserChild]#1/[Button]Save As/..''. Window 2 will have the tag of ''''[BrowserChild]#1/[Button]Save/..''. The ''/..'' at the end brings control back to the window level. So this solution enables Silk to look at the components of each window when identifying them.
Please refer to page 64 of the Silk 1.0 User's Guide for more info.
What about if I have two identical dialog boxes, and the only thing that different about them is that one got a Custom Win inside it
[-] window DialogBox SomeName
[ ] tag ''test''
[ ] parent SomeparentWindow
[-] PushButton OK
[-] multitag ''OK''
[ ] ''$2''
[-] CustomWin ThereMustBeAtLeastOneName
[-] msw multitag ''[MSOUNISTAT]Some text goes here''
[ ] ''[MSOUNISTAT]$-1''
I have tried the following but unfortinitly it didn't work:
tag ''[DialogBox]test/[CustomWin]Some text goes here/..''
and I have tried this one too;
tag ''[DialogBox]test/[CustomWin][[MSOUNISTAT]]Some text goes here/..''
> tag ''[DialogBox]test/[CustomWin]Some text goes here/..''
Have you tried
If your window has only one CustomWin element in it, I would
think the tag I give *should* be recognized. You might have
trouble recognizing the window *without* the CustomWin
You might try
The problem related to the tag not working (which is almost correct) is that for CustomWin's you do not use [CustomWin] as is done with other objects in the tag. So "/[MSOUNISTAT]Some text goes here" would identify that child window.
The tag should like this:
tag "[DialogBox]test/[MSOUNISTAT]Some text goes here/.."