#NEWLINE# def click( self , on_element = None ) : #NEWLINE# #INDENT# '\n        Clicks an element.\n\n        :Args:\n         - on_element: The element to click.\n           If None, clicks on current mouse position.\n        ' #NEWLINE# if on_element : #NEWLINE# #INDENT# self . move_to_element ( on_element ) #NEWLINE# #UNINDENT# self . _actions . append ( ( lambda : self . _driver . execute ( Command . CLICK , { #NEWLINE# #INDENT# 'button' : 0 , #NEWLINE# #UNINDENT# } ) ) ) #NEWLINE# return self