While writing some Selenium test cases in Java, I found an non-interactable button that I need to press.
So why not press it with a 'Click on Found Image' action?
I'm currently trying to trigger by Shell script like this:
import java.io.*;
Process p = Runtime.getRuntime().exec("osascript -e 'tell application "Keyboard Maestro Engine" to do script "86FA96C6-5DB4-489F-B1D0-F84A4CF4B857"'");
Unfortunately the macro never runs. What could be the issue and how to troubleshoot?
I think you're on to something with the quoting, although neither of those quote attempts worked. I'm using IntelliJ IDEA and it's escaping quotes with backslashes even when pasted in.
On a happy note, that last one did work, after I made the file executable of course.
MacOS Catalina then sent 2 permission requests to carry it out. But hey, now I have a working button. I wish I could do it with code alone though.