Does anyone know of a way to check if a given window is maximized and in the foreground? For the process I am creating it would be helpful to be able to check if a specific tab in IE is visible and maximized.
I have tried using the UiExplorer to look for any properties which change with being maximized or in the foreground, but could not find any.
I also tried using the Find Element activity with WaitVisible and WaitActive selected inside a try-catch to try to check for whether the element is in the foreground. The idea is that the Find Element should throw an error if the window is not visible or not active, but not if the window is visible and active. However, from what I can tell, WaitVisible and WaitActive have absolutely no effect on the activity behavior (the element is found even when I minimize it).
Does anyone have a solution to this? Am I missing something obvious, like an activity designed to perform this check? If not, it seems like this would be a useful feature for a UI automation platform.
Thanks in advance for any help.