pywinauto.windows.win32_element_info¶
Implementation of the class to deal with a native element (window with a handle)
- class
pywinauto.windows.win32_element_info.HwndElementInfo(handle=None)¶Wrapper for window handler
auto_id¶Return AutomationId of the element
children(**kwargs)¶Return a list of immediate children of the window
class_name¶Return the class name of the window
control_id¶Return the ID of the window
control_type¶Return control type of the element
descendants(**kwargs)¶Return descendants of the window (all children from sub-tree)
dump_window()¶Dump a window as a set of properties
enabled¶Return True if the window is enabled
exact_only_props= ['handle', 'pid', 'control_id', 'enabled', 'visible', 'rectangle']¶
- classmethod
from_point(x, y)¶Return child element at specified point coordinates
full_control_type¶Return full string of control type of the element
- classmethod
get_active()¶Return current active element
handle¶Return the handle of the window
iter_children(**kwargs)¶Return a generator of immediate children of the window
name¶Return the text of the window
parent¶Return the parent of the window
pid¶Return the ID of process that controls this window
process_id¶Return the ID of process that controls this window
re_props= ['class_name', 'name', 'auto_id', 'control_type', 'full_control_type']¶
rectangle¶Return rectangle of the element
renamed_props= {'title': ('name', None), 'title_re': ('name_re', None), 'process': ('pid', None), 'visible_only': ('visible', {True: True, False: None}), 'enabled_only': ('enabled', {True: True, False: None}), 'top_level_only': ('depth', {True: 1, False: None})}¶
rich_text¶Return the text of the window
search_order= ['handle', 'class_name', 'pid', 'control_id', 'visible', 'enabled', 'name', 'auto_id', 'control_type', 'full_control_type', 'rectangle']¶
set_cache_strategy(cached)¶Set a cache strategy for frequently used attributes of the element
- classmethod
top_from_point(x, y)¶Return top level element at specified point coordinates
visible¶Return True if the window is visible
wm_get_ctrl_name= -1¶
wm_get_ctrl_type= -1¶