Skip to content

sdef-to-dts is missing children elements #10

@modest

Description

@modest

I'm not an expert in sdef or the underlying APIs here, but children elements of classes are a pretty big gap in the generated type definitions.

For example, the System Events application (Application('System Events')) has at least 4 defined child elements:

screen shot 2019-01-06 at 13 04 52

In most (all?) cases, these are accessible in at least 3 ways:

Application('System Events').processes(); // returns array
Application('System Events').processes['TextEdit']; // alias for processes.byName('TextEdit')
Application('System Events').processes[0]; // alias for processes.at(0)

If the generated types just included these methods for accessing children, it would make this 1000% more useful for UI automation. System Events relies heavily on child elements.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugBug or Bug fixeshelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions