Skip to content

SwiftUI Control Center window children only exposed as .AXChildren, not .children #434

@nriley

Description

@nriley

On macOS Monterey, after dragging the 'Display' section of Control Center out into its own menu extra:

from talon import Module, actions, ui
from pprint import pprint as pp

mod = Module()

@mod.action_class
class Actions:
	def test():
		"""test"""
		s = ui.apps(bundle='com.apple.controlcenter')[0]
		dm = s.children.find_one(AXRole='AXMenuBarItem', AXIdentifier='com.apple.menuextra.display')
		dm.perform('AXPress')
		actions.sleep(0.1)
		pp(s.children[0].children)
		pp(s.children[0].AXChildren)
		dm.perform('AXPress')
>>> actions.user.test()
[]
[<AXScrollArea>, <AXButton 'Display Preferences…'>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions