#NEWLINE# def with_wait_factory( self , wait_factory = None ) : #NEWLINE# #INDENT# '\n        Configure wait factory to use\n\n        .. versionadded:: 0.10\n        ' #NEWLINE# if ( not wait_factory ) : #NEWLINE# #INDENT# self . use_real_wait_factory = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( wait_factory , 'build' ) : #NEWLINE# #INDENT# self . factories . append ( wait_factory . build ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . factories . append ( self ) #NEWLINE# #UNINDENT# #UNINDENT# return self