I am trying to add a force touch automation for an iOS App. I looked into the Apple docs for the same problem but cannot find anything useful. We can do the force touch from the assistive touch but I am looking for something as simple as the tap() action. Is there anything that we can use for forceTouch?
Any help will be greatly appreciated. Thanks!
how about using
press(forDuration)
?press(forDuration:)
Sends a long press gesture to a hittable point computed for the element, holding for the specified duration.
https://developer.apple.com/documentation/xctest/xcuielement/1618663-press