Click SAP button based on Colour in the button

Hi All,

My requirement is, based on Green & Red dot on the button BOT will decide next steps.
These are SAP buttons in GATP screen.

In the last line there are 3 Green Dots, based on that BOT will click on ok button in the above .
Also, based on " Product Location" BOT will click “OK” button.

In the first line only 1 Green dots but 2 Red dots. based on that BOT will click “Cancel” button.

Please let me know if this activity is possible to automate.

Regards,
Deb

1 Like

Hey @Asitabha_Deb_asitabhad

Quite challenging one. But seems possible.

For the green or red dots which is in the SAP, there should be an icon selector or a selector with color attribute which will actually help us identify the same.

Use Find Children nested way should be the go-to solution for this, I believe.

Thanks
#nK

Hello @Asitabha_Deb_asitabhad

If you inspect on red and green dot using ui explorer, are you able to find any attribute in the selector which tells about the colur. I think there should be some flag attribute which differentiate both.

Then you can sue element exists and if condition to achieve this.