new TouchAction(driver)
.press(PointOption.point(
Addsettoprofile.getCenter().x, Addsettoprofile.getCenter().y))
// a bit more reliable when we add small wait
.waitAction(WaitOptions.waitOptions(Duration.ofMillis(50)))
.release().perform();
Than you for the suggestion the second solution worked for me but when i took a proper selection from the appium screenshot. But i followed the same steps for another element and it does not work but click somewhere on the screen where i do not want it to click so just wanted to highlight the area where appium is tapping to so that i know what i need to adjust for x and y co-ordinates.
@Aleksei
I mentioned in my message above that i am facing issue with an element not found , even tough other elements which i interact with are working and all the images are taken in same fashion, so why appium is not able to find one element? Also i am using the Appium settings mentioned below: