Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdef-to-dts is missing children elements #10

Open
modest opened this issue Jan 6, 2019 · 1 comment
Open

sdef-to-dts is missing children elements #10

modest opened this issue Jan 6, 2019 · 1 comment
Labels
help wanted Extra attention is needed Type: Bug Something isn't working

Comments

@modest
Copy link

modest commented Jan 6, 2019

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!

@modest
Copy link
Author

modest commented Jan 6, 2019

If only we could figure out the function signature of the elusive parameterTypeForNameInCommands(), the translated definitions could be obtained within their own execution environment...

@azu azu added Type: Bug Something isn't working help wanted Extra attention is needed labels Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants