pywinauto: taking more than one app windows
- by Denis Barmenkov
I have a GUI application which can create many similar windows on desktop. All windows have same title. I have to enumerate all dialogs with same title and make some tests against each of such dialogs.
If I call:
dialog = app['Window Name']
pywinauto returns a WindowSpecification object which is useful along with accessing controls by name.
When I call:
dialogs = app.windows_(title='Window Name')
pywinauto returns me a list of HwndWrapper instances which are not so useful.
How to obtain a list of windows with specified title but as WindowSpecification objects?