[Python] Unable to see my checkboxes using Pywinauto

Discussão em 'Python' iniciado por Stack, Janeiro 24, 2025.

  1. Stack

    Stack Membro Participativo

    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) ['TopLevelWindowForOverflowXamlIsland', 'System tray overflow window.', 'System tray overflow
    window.TopLevelWindowForOverflowXamlIsland']
    child_window(title="System tray overflow window.",
    class_name="TopLevelWindowForOverflowXamlIsland") | |
    Windows.UI.Composition.DesktopWindowContentBridge -
    'DesktopWindowXamlSource' (L1425, T877, R1718, B1020) |
    ['DesktopWindowXamlSourceWindows.UI.Composition.DesktopWindowContentBridge', 'DesktopWindowXamlSource',
    'Windows.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")

    Continue reading...

Compartilhe esta Página