#NEWLINE# @ property #NEWLINE# def click( self ) : #NEWLINE# #INDENT# '\n        click on the ui object.\n        Usage:\n        d(text="Clock").click()  # click on the center of the ui object\n        d(text="OK").click.wait(timeout=3000) # click and wait for the new window update\n        d(text="John").click.topleft() # click on the topleft of the ui object\n        d(text="John").click.bottomright() # click on the bottomright of the ui object\n        ' #NEWLINE# @ param_to_property ( action = [ 'tl' , 'topleft' , 'br' , 'bottomright' , 'wait' ] ) #NEWLINE# def _click( action = None , timeout = 3000 ) : #NEWLINE# #INDENT# if ( action is None ) : #NEWLINE# #INDENT# return self . jsonrpc . click ( self . selector ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action in [ 'tl' , 'topleft' , 'br' , 'bottomright' ] ) : #NEWLINE# #INDENT# return self . jsonrpc . click ( self . selector , action ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . jsonrpc . clickAndWaitForNewWindow ( self . selector , timeout ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return self