noel
noel

Reputation: 21

Unable to see my checkboxes using Pywinauto

I am trying to interact with windows using pywinauto.

This is the output of dump_tree:

Control Identifiers:

TopLevelWindowForOverflowXamlIsland - 'System tray overflow window.'    (L1425, T877, R1718, B1020)
['System tray overflow window.', 'TopLevelWindowForOverflowXamlIsland', 'System tray overflow window.TopLevelWindowForOverflowXamlIsland']
child_window(title="System tray overflow window.", class_name="TopLevelWindowForOverflowXamlIsland")
   | 
   | Windows.UI.Composition.DesktopWindowContentBridge - 'DesktopWindowXamlSource'    (L1425, T877, R1718, B1020)
   | ['Windows.UI.Composition.DesktopWindowContentBridge', 'DesktopWindowXamlSource', 'DesktopWindowXamlSourceWindows.UI.Composition.DesktopWindowContentBridge']
   | child_window(title="DesktopWindowXamlSource", class_name="Windows.UI.Composition.DesktopWindowContentBridge")
   |    | 
   |    | Windows.UI.Input.InputSite.WindowClass - ''    (L1425, T877, R1425, B877)
   |    | ['Windows.UI.Input.InputSite.WindowClass']
   |    | child_window(class_name="Windows.UI.Input.InputSite.WindowClass")
   | 
   | Windows.UI.Input.InputSite.WindowClass - ''    (L1425, T877, R1425, B877)
   | ['Windows.UI.Input.InputSite.WindowClass']
   | child_window(class_name="Windows.UI.Input.InputSite.WindowClass")

But I couldn't find the boxes to check or click.

I have tried to click on input_site_window with found_index = 1

child_window = top_window.child_window(title="DesktopWindowXamlSource", class_name="Windows.UI.Composition.DesktopWindowContentBridge")
input_site_window = child_window.child_window(class_name="Windowes.UI.Input.InputSite.WindowClass")

Upvotes: 0

Views: 29

Answers (1)

Vasily Ryabov
Vasily Ryabov

Reputation: 9971

Please use Application(backend="uia") for XAML apps. Also please provide more full code samples to see such things exactly not trying to guess (from previous question code).

Also please read the Getting Started Guide. 2 backends have different hierarchies and even some property names like class_name vs control_type.

Upvotes: 0

Related Questions