'Waits until `text` appears on current page.
Fails if `timeout` expires before the text appears. See
`introduction` for more information about `timeout` and its
default value.
`error` can be used to override the default error message.
See also `Wait Until Page Contains Element`, `Wait For Condition`,
`Wait Until Element Is Visible` and BuiltIn keyword `Wait Until
Keyword Succeeds`.'

@keyword
def wait_until_page_contains(self, text, timeout=None, error=None):

    if (not error):
        error = ("Text    '%s'    did    not    appear    in    <TIMEOUT>" % text)
    self._wait_until(timeout, error, self.element.is_text_present, text)
