Element.findElements
Find all matching elements. Scoped to descendants.
js
element.findElements(selector, options?)Arguments
| Argument | Type | Meaning |
|---|---|---|
selector | object | string | Attribute filters; a string means {name: string}. See the UIHelper guide for selectors. |
options | object | Optional {timeout:0, interval:100}. Ordinary queries do not wait by default. |
Returns
Element array, or [].
Example
js
const panel = UIHelper.waitForElement({id: "panel"}, 5000);
const buttons = panel.findElements({type: "Button", visible: true});
console.log(buttons.length);Notes
The parent must still be valid. See the matching UIHelper method for options. Placeholder panel/child identifiers require inspection.