hammerspoon2-docs
    Preparing search index...

    Function findByRole

    • Find AX elements matching a given role

      Parameters

      • role: string

        The role name to search for (e.g. "AXButton")

      • parent: HSAXElement

        An HSAXElement to search within

      Returns HSAXElement[]

      An array of matching HSAXElement objects