Search code examples
pywinauto

Pywinauto ItemStatusProperty selection


Is there a way for me to use pywinauto to select the UIA property ItemStatus.

I can see the property with the inspect.exe tool, but pywinauto elements don't have it exposed.


Solution

  • I'm not sure if this is the right way, but I used underlying element object to do this.

    .element_info._element.CurrentItemStatus

    This return the property value I needed.

    Thanks for the element_info suggestion @vasily, that gave me the pointer where to look in the src code.