CV Element Exists returns TRUE even when element doesn't exist

I tried to add a different screen to the second screen, still got the same behavior. However even if that is how UiPath behaves, it would lead to a bigger issue:

Let’s say I want to keep clicking a button until it disappears. I would add a click activity to a while loop and check the existence of the button at the end of the loop. The ‘CV Element Exists’ activity would be only used once. In that case, how will UiPath ever return a different value if it always uses the last value for optimization?

In that case the CV Element Exists and the CV Click Button should be on
I’ve added a sample project to exemplify this. For the CV Click, I’ve changed the screen to be different. If you change it to the same one, as in your example, it’ll scroll indefinitely) two separate Screens (Not different CVScopes) to trigger an automatic refresh.

I think we can definitely improve the CV element Exists with a Refresh Before option (as CV Get Text has)
CvElementExistsWf.zip (4.1 MB)

2 Likes