Forum Discussion

info_3's avatar
11 years ago

Click image in keyword tests

I have an item inside the window (specifically, inside the list view) which I need to automatically click with TestComplete. TestComplete suggests that I specify the list item index to click on (when automatically recording). However, this does not work for me as my item does not have a constant position in the list view; both item index and display coordinates may change. So, I need TestComplete to find the image inside my list view and click somewhere inside the image. Is it possible without coding a script?



Thank you.

1 Reply


  • Hi Elena,


     


    You can do the following: consider that your entire list view is an image. You can use the Picture method to get the image of the object. After this, you can search the image of the specified item inside the entire image. Please refer to the "Finding an Image Within Another Image" article for details.


     


    Will it work for you?