#NEWLINE# def tapImage( self , imageUri , pos = ( 0.5 , 0.5 ) , duration = 0.0 , locateTimeout = None , **kwargs ) : #NEWLINE# #INDENT# locations = self . locateImage ( imageUri , imageUri ) #NEWLINE# if ( not locations ) : #NEWLINE# #INDENT# raise ImageNotRecognizedError ( imageUri ) #NEWLINE# #UNINDENT# return self . _gesture . tap ( locations [ 0 ] . getPos ( ) , duration )