Has anyone ever come across a scenario where Element Exists returns true even though the element is not visible? In my case, it is an error popup
Better solution for such cases is to use check app state activity, which targets to verify if element/window has appeared or not unlike element exists which returns true even when element is not visible as it may still be there but not in enabled state.
hi @rizvana.mohammed
Yes it can happen
Element Exists only checks if the element is in the DOM.. not if it’s actually visible, many popups stay loaded but hidden, so UiPath sees them as “existing” even when you can’t see anything on screen
To fix it you can try to use “Check App State” (Modern) that checks real visibility
or you can use “Wait for Element Visible” instead of Element Exists.
or even “Get Attribute” (like display, visibility, aria-hidden, or a “hidden” class or something like that) to confirm if it’s actually shown in the screen
If this helped, mark it as the solution so it can help others too ![]()
Refer this solution.
Use Check App State, which validates whether an element is truly visible, unlike Element Exists, which only checks presence in the DOM.
Try to use Find Element activity and check property Wait Visible.
Hi @rizvana.mohammed
Welcome to UiPath
The popup exists in the DOM even when hidden, so Element Exists still finds it.
try to use Check App State or Get Attribute (visibility/displayed), or enable the “Visible” filter in Wait for Element.
If helpful, mark as solution. Happy automation with UiPath
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
