and.my
(An-m)
September 8, 2022, 3:54pm
1
hello, I am trying to check if an element is on screen or not
it appears after a button is clicked and a menu is expanded
the problem is, it still “exists” if the menu is not visible, so activities like “element exists” and “find element” find it anyway.
the selector property “visible” in uiexplorer is always “1” no matter if the menu is expanded or not
any help would be appreciated
1 Like
ppr
(Peter Preuss)
September 8, 2022, 4:22pm
2
when element is from a web page we can use often some CSS Property values to check the visibility status. e.g. display - none
For this we have released following package:
When element is from an application in some scenarios (JAVA Form Apps, SAP cases) we can refer to the relativeVisibility attribute.
Also in some cases not the element but some other elements above in the hierarchy are toggling the state. Nowadays obsolete but find an example here:
https://forum.uipath.com/t/howto-detecting-if-internet-explorer-download-bar-is-displayed-or-not/158768/4?u=ppr
Hello @and.my
Can you use Ui explorer and inspect on the element to find the attribute which determines the existence of that element. Then you can use get attribute to validate that.
Thanks