I am having a mental block to figure out a correct logic to use. Basically in citrix, on mac, windows commonly do not open to the correct size. And there is no way to manipulate these windows in Citrix easily as far as I know.
I have a script that requires to click on the 'place order' button at the bottom of the screen that is commonly not visible since the window is not opened completely. I want to execute the script to drag the bottom right corner of the window out diagonally if and only if the button 'place order' is not seen on the screen in this window. The problem is that button image is different whether it was, or not pressed previously,
So I have to evaluate the logic that if neither one of these two image is present (but not both), then drag the window corner. Having a mental block to figure out the correct logic here. See below image.