'Verifies frame identified by `locator` contains `text`.
See `Page Should Contain ` for explanation about `loglevel` argument.
Key attributes for frames are `id` and `name.` See `introduction` for
details about locating elements.'

@keyword
def frame_should_contain(self, locator, text, loglevel='INFO'):

    if (not self._frame_contains(locator, text)):
        self.ctx.log_source(loglevel)
        raise AssertionError(("Page    should    have    contained    text    '%s'    but    did    not" % text))
    self.info(("Current    page    contains    text    '%s'." % text))
