Not able to click (Appium)


#1

Issue : I am not able to click on the element. My app just get open in the emulator but the click method did not work.

I am attaching mostly everything so that you can understand what is the actual problem.


#2

May be this element has been disable, let try it:

// get Element:
public void test() {
AndroidElement element = (AndroidElement) driver.findElementByXPath(“element-xpath”);
tapOn(element);
}

// Mobile Action
public void tapOn(AndroidElement element) {
Point point = new Point(element.getCenter().getX(), element.getCenter().getY());
PointOption pointOption = new PointOption().withCoordinates(point);
TouchAction touchAction = new TouchAction(driver);
touchAction.tap(pointOption).perform();
}

this case, it will tap on screen at point of Element, it not care state of element is disable or enable.


#3

It is enabled.
Please check the image


#4


#5

Please show Capabilities() at Pr1. I think your root cause at this.