Change the background color of the image to click on the image

Hi guys,

I have a hard challenge today. Im currently working on a project which have 2 enviroments, PRO (production) & PRE (pre-production).

The issue is the next: I have to work on Citrix, so I must use image activities (like click image, image exists, etc). In one point of the process, I must read a number which is inside a table, and the color of this table will change between the enviroments and will change more in the future.

So I have been requested to make a custom activity which changes the background color of the image. I’ve got a code from inet, but a have few questions…

  • If I change the background color of the image, and after this I use click image… the image and background color that I will take from grab the screen would be the original and not the changed, right?

  • So, I should make a custom activity which changes the background color of the image and grab an image from screen, then it makes the click on the grabbed image (inside the code of the activity)

Thank you very much guys.

Kind regards,
Pablo

Hello
Do you know the function that makes me know the background colour of an image ?