ApplesauceOS
Read Markdown ↗Download .md

UIHelper.exists

Check presence without polling.

js
ui.exists(selector)

Arguments

ArgumentTypeMeaning
selectorobject | stringAttribute filters; a string means {name: string}. See the UIHelper guide for selectors.

Returns

Boolean; communication/selector errors still throw.

Example

js
const ui = UIHelper.forApp("com.example.app");
console.log(ui.exists({id: "loading", visible: true}));

Notes

Replace example identifiers with selectors verified in your app. Pinning an app does not open it.

All JavaScript APIs · Automation playbook