pywinauto: taking more than one app windows
Posted
by Denis Barmenkov
on Stack Overflow
See other posts from Stack Overflow
or by Denis Barmenkov
Published on 2010-05-13T20:06:30Z
Indexed on
2010/05/15
7:04 UTC
Read the original article
Hit count: 247
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?
© Stack Overflow or respective owner