AppiumForMac not clicking

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 get the text 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?

Hey Gabriel, any luck on the solution? I am also facing same issue
driver.findElementByXPath("/AXApplication[@AXTitle=‘AppName’]/AXWindow[@AXTitle=‘MyTitle’ and @AXSubrole=‘AXStandardWindow’]/AXScrollArea[0]/AXScrollArea[0]/AXScrollArea[0]/AXScrollArea[0]/AXTable[0]/AXRow[@AXSubrole=‘AXTableRow’]/AXCell[0]/AXImage[@AXIdentifier=‘imgSelectStateList’]").click();

1 Like

Following, I have the same issue.

In python find_element_by_xpath does not work.
and find_elements_by_xpath would not return an element list to iterate and click.