#NEWLINE# def click( self , timeout = None , presleep = 0 , postsleep = 0 ) : #NEWLINE# #INDENT# timeout = ( timeout or self . _timeout ) #NEWLINE# if isinstance ( self . _wrapped , WebElement ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if presleep : #NEWLINE# #INDENT# time . sleep ( presleep ) #NEWLINE# #UNINDENT# self . _wait_until_stopping ( timeout , 0.01 ) #NEWLINE# self . _wait_until_displayed ( timeout , 0.01 ) #NEWLINE# self . _wait_until_clickable ( timeout , 0.01 ) #NEWLINE# if postsleep : #NEWLINE# #INDENT# time . sleep ( postsleep ) #NEWLINE# #UNINDENT# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise e