@roopesh1
Try below snippet. Here I passed the id/xpath of the element which we want to perform click and tap on it by getting the X and Y co-ordinates of the passed id/xpath using getLocation function.
Pass - id as ‘Done’ or pass - xpath as they provided in the screenshot.
public boolean tapByElementById(String id) {
try {
WebElement element = new WebDriverWait(driver, 10).until(ExpectedConditions.presenceOfElementLocated(By.id(id)));
int startX = element.getLocation().getX();
int addition = (int) (element.getSize().height * 0.5);
int endX = startX + addition;
int startY = element.getLocation().getY();
new TouchAction<>(driver).tap(PointOption.point(endX, startY)).perform();
return true;
} catch (Exception e) {
return false;
}
}