question: public void clickByImage ( String targetImgPath ) { Point2D coords = getCoords ( takeScreenshot ( ) , targetImgPath ) ; if ( ( coords . getX ( ) >= 0 ) && ( coords . getY ( ) >= 0 ) ) { driver . tap ( 1 , ( int ) coords . getX ( ) , ( int ) coords . getY ( ) , 100 ) ; } else { throw new ElementNotVisibleException ( "Element not found - " + targetImgPath ) ; } }
target:  clickByImage is the main method that you should be using to tap on elements on screen using an image.