Forum Discussion
3 Replies
- tristaanogreEsteemed Contributor
I don't know about searching for a particular color. However, you could probably adapt FindRegion (https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/stores/regions/findregion.html) to search for the red square in the larger image. That will return a "Rect" object. https://support.smartbear.com/testcomplete/docs/reference/program-objects/rect/index.html
Using the properties of the "Rect" object, you can probably adapt code to click on a set of co-ordinates based upon the Top and Left values.
- TMUGHILENDRANOccasional Contributor
I Dont get it can you provide me a example in code.
- AlexKarasChampion Level 3
Hi,
You can also use the .Pixels property of the Picture object (http://support.smartbear.com/testcomplete/docs/reference/program-objects/picture/pixels.html), though the performance of this will be low and Robert's suggestion looks more preferable for me at the moment.
Related Content
- 7 years agoRajesh8