When working with Image Analysis, you should pay more attention to the UI changes. Some programs will record the UI components' prior status. When that happens, it will cause image analysis to fail. For example, below is the status change of the textbox on the Remote Desktop Connection dialog. When you never accessed any computer, it will show the placeholder text. But when you have connected to the computer beforehand, this textbox will store and display the address.
Solution 1: Use POI for the changes in the text field behavior
From the example above, we captured the text beside the textbox instead of capturing it. It is because we know that this "Computer" text will never change. So it will be perfect for the target image. Then use POI to determine the click location on the textbox.
But for this condition, you can also skip the click step and type the computer address directly using the Typing action because it is already focused.
Solution 2: Use Wait for Result Action
For another case, you may use "Wait for Result" and combine it with the IF condition for the UI changes. For example, when your target image is uncertain, you can use Wait for Result to capture your target appearance and save the status (true or false). Then you can use an IF condition to check the saved status result and do the next step under the condition.
If you are unsure that the checkbox is being checked, you can use Wait for Result to capture it as a target and get the status. When the checkbox is checked, you do not have to do anything. Otherwise, when the checkbox has not been selected, you will perform a click to check the checkbox x.