How to check that an image Region does not exist any longer?
Hi,
I am working on an automation script where i've used Regions Check function to check that a region (image) exists, then perform an action and want check that it is no longer present.
I'm using Python for my scripting and had tried this:
if not Regions.MainMenuUserPrefsFocus.Check(HomePg.NavBarRHDropdown.MainPanel.panelMainMenuContainer, False, False, 2165, 17):
Log.Message("PASS - User Prefs NOT in Main Menu highlighted / in focus")
else:
Log.Warning("FAIL - User Prefs displayed in focus on Main Menu")
However, this is giving me failures in the log:
"Ambiguous recognition of the tested object."
Followed by:
"The region checkpoint "MainMenuUserPrefsFocus" failed."
Followed by my Log message to PASS - User Prefers NOT in Main Menu ...
Is there a way to basically perform a negative Region check to check that a region is no longer displayed?
Thanks!
What is in the region when the first image is no longer there? Could you check for that on the second pass?