I have a scenario where I want to fetch a text from UI, if a text is found then need to proceed with if block, if not found then go to else part.
For this I have used Get Text activity like below.
in such scenarios we can observe, that an element is set to non display (e.g. CSS Property display:none; direct or on some parent element). So it is not shown, but will be found.
We would recommend to analyse this more in detail e.g. UiExplorer / Browser F12 Webtools
Perfect, so coming back to the analysis task. Did you find the element triggering the display? As mentioned, it also can be an element on upper parent level
Could you check by using UiExplorer what would be the difference in the Properties/Attributes when the text is present for that element and when the text is not present ?
This may be able to help us find the right attribute and use it for decision making.