often the attribute is visibility is not triggered on by display status. In Java applications we found out that relativeVisibility of an element or one its parent ( or parent…) is triggering the ststus. So you have to explore and search in UiExplorer visual tree (ensure that you update the properties properly). Also you can give atry UiPath uiElement API if isVisible helps. But keep in mind if an element (e.g another window) is hiding the already displayed element then isVisible leads to sideeffects.
Humm got it. Unfortunately “relative Visibility” didn’t work (it returns True for both situations). I’ve tried all the parent’s options on visual tree and the result is the same when element is either on background or foreground
I don’t know about UiPath uiElement API. Could you please send me a link that I can read and understand about how it works?
use a find Element and set it to this element (The Button I guess)
set a breakpoint on relevant place after find element
open watch panel and do some analysis with the variable from find element and the API