MacDriver not clicking on Xamarin App

Hi!

I’m trying to automate an app built with Xamarin.Mac but came across something weird.

When I automate native apps such as the CALCULATOR I can perform CLICKS on the app with no problem, but when I jump to my XAMARIN APP it opens the app, finds the elements, but it doesn’t let me click on any of element.

I know the elements are being found because I could even GETTEXT out of them… But still no CLICKS are allowed.

Everytime I try so it throws the following exception:

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command.

A simple code that reproduce my behavior is:

DesiredCapabilities caps = new DesiredCapabilities();

    caps.setCapability("platformName", "Mac");
    caps.setCapability("deviceName", "Mac");
    caps.setCapability("platformVersion", "10.15.5");
    caps.setCapability("app", "MyAPP");
    caps.setCapability("newCommandTimeout", 500);

    driver = new AppiumDriver(new URL("http://localhost:4723/wd/hub"), caps);
    driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
   
   
driver.findElementByXPath("/AXApplication[@AXTitle='MyAPP']/AXWindow[@AXTitle='MyAPP' and @AXSubrole='AXStandardWindow']/AXImage[1]").click();

Any ideas?