In my application I want to make sure that a window is visible to continue an automation scenario. Now, the application has more than one window that does not have a name. Is there a way to recover a window with certainty? Control_id is not usable for me, so I don't see any solution unless using automation id.
For more information:
panel.get_properties()
Out[37]: {'exstyle': 65536, 'rectangle': <RECT L827, T79, R1017, B527>, 'is_unicode': True, 'control_id': 197612, 'fonts': [<LOGFONTW 'MS Shell Dlg' -11>], 'client_rects': [<RECT L0, T0, R190, B448>], 'context_help_id': 0, 'friendly_class_name': 'WindowsForms10.Window.8.app.0.33c0d9d', 'is_visible': True, 'control_count': 3, 'is_enabled': True, 'texts': [''], 'menu_items': [], 'class_name': 'WindowsForms10.Window.8.app.0.33c0d9d', 'style': 1442840576, 'user_data': 0}
There are many possible criteria for window search disambiguation. If no names are available, you still have
found_index
orparent
criterion. Example:All possible keywords are listed in find_elements() function.