ApplesauceOS
Read Markdown ↗Download .md

Element.isDisplayed

Check current visibility.

js
element.isDisplayed()

Arguments

No arguments.

Returns

Boolean based on frame, visibility and clipping; not exhaustive occlusion testing.

Example

js
const element = UIHelper.waitForElement({id: "target", visible: true, enabled: true}, 5000);
console.log(element.isDisplayed());

Notes

Stale elements throw; reacquire after navigation. Read several fields with getAttributes() in one call.

All JavaScript APIs · Automation playbook