Tried with the press method and IOSPressOptions() with pressure, but it is not enough.
new IOSTouchAction((PerformsTouchActions)DriverPool.getDriver()) .press(new IOSPressOptions().withElement(ElementOption.element(DriverPool.getDriver().findElement(notif))).withPressure(2.0)) .waitAction(WaitOptions.waitOptions(Duration.ofMillis(3000))) .release() .perform();
The same with longPress method.
new TouchAction((PerformsTouchActions)DriverPool.getDriver()) .longPress(ElementOption.element(element.getMobileElement())) .release() .perform();
Seem like not enough press is performed.