New Imaging.FindOptions

Class library usage, coding and language questions.
NialWooten
Posts: 1
Joined: Sun Oct 03, 2021 3:35 am

New Imaging.FindOptions

Post by NialWooten » Sun Oct 03, 2021 3:37 am

Hello,
I'm trying to perform an image "Validate.ContainsImage" in a user code module.
When recording the validation i selected an area of the image to be compared.
10.0.0.0.1 192.168.10.1 192.168.1.254
In user code I am trying to use "new Imaging.FindOptions(Rectangle clipping)" but i don't know how to code this properly.
Could you clarify the syntax for me please.

Thank you.
Last edited by NialWooten on Mon Oct 11, 2021 2:28 am, edited 1 time in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: New Imaging.FindOptions

Post by odklizec » Tue Oct 05, 2021 7:22 am

Hi,

Check for example this post:
viewtopic.php?f=4&t=13516&p=53102

A neat trick, how to learn more about code behind the Ranorex actions, is to either convert the recording action to code or simply view the generated code behind each action (right click on recording action and form the appeared menu select View code or press Ctrl+Enter). Hope this helps?

And of course, you can find more details about FindOptions here:
https://www.ranorex.com/Documentation/R ... ptions.htm
Pavel Kudrys
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