I want to find all elements in an window that are currently visible. For example, I can do this with the Method
IList<Element> elements = mainWindow.Find(new RxPath(".//"));
Afterwards i check the visible property (another option would be to use the visible property in the XPath). Anyway... in many cases (especially in Java applications) the elements are within a container. Because the container is not visible, also the elements on it are not visible. But because the element has the property visible=true, i will get the elements as visible elements.
Is there an easy way to get only the "real" visible elements ? So one way would be to go through the hirachy recursive, using the children property and only go into the container when it is visible. But maybe there is an easier (more performant) way ?
Thanks in advance,
Patrik