Hi,
In my application there are few elements which are not identifiable using Ranorex spy,
So to perform any operations on it I am using image based validation,
Now, the scenario is just to verify whether the image exists or not, if exist "pass" else "fail",
I am not able to achieve this using .exist , .visible , .ensurevisible methods
Please suggest me which method can I use to just verify whether the image is present or not
Regards
Is there any method to check whether the image is exist or not
Re: Is there any method to check whether the image is exist or not
Hi,
Is there something wrong with Validate - Compare Image/Contains Image action? This is exactly what's the Validate action for.
Is there something wrong with Validate - Compare Image/Contains Image action? This is exactly what's the Validate action for.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Is there any method to check whether the image is exist or not
Have a look at Ranorex.Imaging.
Re: Is there any method to check whether the image is exist or not
Hi,
Thanks a lot for your valuable solutions,
I tried Validate.containsImage and its working
On top of it one quick doubt is
Do we need to right the validate contians code inside if else condition
OR
Directly we can right validate contain image code (single line code)
Because Validate.ContainsImage is a bool method and it will anyway return true or false
Please suggest me here
Regards
Thanks a lot for your valuable solutions,
I tried Validate.containsImage and its working
On top of it one quick doubt is
Do we need to right the validate contians code inside if else condition
OR
Directly we can right validate contain image code (single line code)
Because Validate.ContainsImage is a bool method and it will anyway return true or false
Please suggest me here
Regards
Re: Is there any method to check whether the image is exist or not
Hi,
You can make the Validation method to throw exception (if validation fails) by setting exceptionOnFail parameter to True.
You can make the Validation method to throw exception (if validation fails) by setting exceptionOnFail parameter to True.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration