counting multiple windows with the same caption
I'm looking to be able to count the number of open windows with the same caption.
Eg If from the application I launch a window with the caption "MyWin" and by lauching again I can create a second instance of "MyWin". Can I then create a VP that will count the instances of "MyWin" and return true if the count is 2?
Re: counting multiple windows with the same caption
Not sure if someone already responded to your query.
When I was using Visual Test, I did the following:
- Start a browser session
- Look for a window with a specific caption, and get its unique ID in an array (put it in position 1). You look for any window that is not minimized.
- Minimize the windows
- Start a second session, look for a windows that is not minimized, etc.