'Waits until element specified with `locator` disappears from current page.
Fails if `timeout` expires before the element disappears. 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`, `Wait For Condition`,
`Wait Until Element Is Visible` and BuiltIn keyword `Wait Until
Keyword Succeeds`.'

@keyword
def wait_until_page_does_not_contain_element(self, locator, timeout=None, error=None):

    def check_present():
        present = self.find_element(locator, required=False)
        if (not present):
            return
        else:
            return (error or ("Element    '%s'    did    not    disappear    in    %s" % (locator, self._format_timeout(timeout))))
    self._wait_until_no_error(timeout, check_present)
