#NEWLINE# def until_not( self , method , message = '' ) : #NEWLINE# #INDENT# 'Calls the method provided with the driver as an argument until the         return value is False.' #NEWLINE# end_time = ( time . time ( ) + self . _timeout ) #NEWLINE# while True : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = method ( self . _driver ) #NEWLINE# if ( not value ) : #NEWLINE# #INDENT# return value #NEWLINE# #UNINDENT# #UNINDENT# except self . _ignored_exceptions : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# time . sleep ( self . _poll ) #NEWLINE# if ( time . time ( ) > end_time ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# raise TimeoutException ( end_time )