Skip to content

Conversation

@fartinmartin
Copy link
Contributor

Window.findElement() is documented, but it is not present in type definitions.

This PR adds findElement(name: string): _Control | null. Although, I'm not sure if that is the preferred return type. Would we want to be explicit and list the control types?

findElement(
    name: string,
  ):
    | Button
    | Checkbox
    | DropDownList
    | EditText
    | FlashPlayer
    | Group
    | IconButton
    | Image
    | ListBox
    | Panel
    | Progressbar
    | RadioButton
    | Scrollbar
    | Slider
    | StaticText
    | TabbedPanel
    | TreeView
    | null

@zlovatt zlovatt merged commit 59452d2 into docsforadobe:master May 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants