#NEWLINE# def wait_until_page_contains( self , text , timeout = None , error = None ) : #NEWLINE# #INDENT# 'Waits until `text` appears on current page.\n\n        Fails if `timeout` expires before the text appears. See\n        `introduction` for more information about `timeout` and its\n        default value.\n\n        `error` can be used to override the default error message.\n\n        See also `Wait Until Page Does Not Contain`,\n        `Wait Until Page Contains Element`,\n        `Wait Until Page Does Not Contain Element` and\n        BuiltIn keyword `Wait Until Keyword Succeeds`.\n        ' #NEWLINE# if ( not error ) : #NEWLINE# #INDENT# error = ( "Text '%s' did not appear in <TIMEOUT>" % text ) #NEWLINE# #UNINDENT# self . _wait_until ( timeout , text , self . _is_text_present , text )