Hi,
can I check if a screen doesn't contain a picture?
In the Validate action I only found "ContainsImage". I would need to find "NotContainsImage".
Thanks!
Validate Image
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Validate Image
Hi,
Why do you don't use the "Validate.ContainsImage" action in order to check if it picture isn't contained in the screen?
The method will return false if the picture isn't contained in the screen, so you could "validate" the outcome of the action. For more information about the action please see: ContainsImage Method.
Regards,
Markus
Why do you don't use the "Validate.ContainsImage" action in order to check if it picture isn't contained in the screen?
The method will return false if the picture isn't contained in the screen, so you could "validate" the outcome of the action. For more information about the action please see: ContainsImage Method.
Regards,
Markus
Re: Validate Image
You can simply open properties of your ContainsImage validation action and set "Report Level on Failure" to Success and "Report level on Success" to Failure. This way if Contains -> will be reported as Failure, and if Not contains -> will be a Success.