Hello everybody reading this.
I’ve stumbled onto some strange behaviour concerning Check App State bordering on a bug.
I’m using:
Studio 2023.4.4
UIAutomation.Activities 23.10.9
In my project when creating a new Check App State by draging a descriptor to my sequence and selecting Check App State, there’s no Visibility check under Options in the properties (See below Screenshot 1)
However, the old Check App States that were in my project already, DO have this option under Options (See below Screenshot 2)
In both Check App States the exact same descriptor for Zaaknummer is used.
Both Check App States in Screenshot 1 and Screenshot 2 are in the same sequence.
- My first question is, why is there no Check visibility option under Options when creating a new Check App State as opposed to the Check App States already in the project?
This wouldn’t bother me if both visibility checks worked exactly the same, but they don’t.
I’ve got this screen where Zaaknummer is in the background and Clustering is in the foreground. I want to check if Zaaknummer is visible:
In Screenshot 1 underneath Check App State there’s a Log Message that prints the Result of that Check App State. In this Check App State under Target, Visibility check is set to Fully visible.
The print of this Result is True. So Zaaknummer is found, even though it is in the background.
In Screenshot 2 underneath Check App State there’s a Log Message that prints the Result of that Check App State. In this Check App State under Target, Visibility check is set to None. And under Options, Check Visibility is set to True
The print of this Result is False. So Zaaknummer is not found.
Some more questions:
- Why does Visibility check under Target behave different from Check visibility under Options?
- If Check visibility under Options is not supported anymore (since it isn’t there when creating new Check App States) shouldn’t Visibility check under Target behave the same?
- My preferred behaviour is that Zaaknummer is not found, because it is not in the foreground, but what is the way it was meant to be used?
Ultimately I want to use the Check App State in a Pickbranch in a Pick Activity so I can determine if the Clustering screen is on top (and click on Sluiten) or the screen with Zaaknummer but with the New Check App State from Screenshot 1 it’s random which screen it finds first. In the old Check App State from Screenshot 2 I do get the right result namely Clustering. However I don’t want to go around copying the old Check App State with the Visibility check under Options.
- If the Visibility check is meant to find Zaaknummer because it is visible on screen, although it is in the back, what activity should I use to determine if Zaaknummer is on the foreground?
Thanx in advance for reading through the whole thing.
And even more thanx for answering (some of) my questions.
Greets,
RoboGuy