I'm writing tests where I want to delete a tableViewCell by swiping it, exposing the red "Delete" editing action. I can swipe the cell fine, but the problem arises when I try to use tapAtPoint
.
This is straight from the GREYActions.h
:
* @param point The point that should be tapped. It must be in the coordinate system of the element and it's position is relative to the origin of the element, as in (element_width/2, element_height/2) will tap at the center of element.
I've tried using the element's frame and bounds width minus 1 point, and then halfway down the cell like this:
CGPointMake(element.frame.size.width - 1, element.frame.size.height / 2)
I'm still unable to tap the end of the cell.
Please let me know if I can explain further.