pywinauto.controls.atspiwrapper

Basic wrapping of Linux ATSPI elements

class pywinauto.controls.atspiwrapper.AtspiMeta(name, bases, attrs)

Bases: pywinauto.base_wrapper.BaseMeta

Metaclass for AtspiWrapper objects

static find_wrapper(element)

Find the correct wrapper for this Atspi element

class pywinauto.controls.atspiwrapper.AtspiWrapper(element_info)

Bases: pywinauto.base_wrapper.BaseWrapper

Default wrapper for User Interface Automation (Atspi) controls.

All other Atspi wrappers are derived from this.

This class wraps a lot of functionality of underlying Atspi features for working with windows.

Most of the methods apply to every single element type. For example you can click() on any element.

get_menu()
get_slider()
get_states()
is_active()

Whether the element is active or not

set_focus()
set_keyboard_focus()

Set the focus to this element

set_window_focus(pid)
exception pywinauto.controls.atspiwrapper.InvalidWindowHandle(hwnd)

Bases: RuntimeError

Raised when an invalid handle is passed to AtspiWrapper