'Verifies element identified by `locator` does not contain text `expected`.
`message` can be used to override the default error message.
Key attributes for arbitrary elements are `id` and `name`. See
`Element Should Contain` for more details.'

@keyword
def element_should_not_contain(self, locator, expected, message=''):

    self.info(("Verifying    element    '%s'    does    not    contain    text    '%s'." % (locator, expected)))
    actual = self._get_text(locator)
    if (expected in actual):
        if (not message):
            message = ("Element    '%s'    should    not    contain    text    '%s'    but    it    did." % (locator, expected))
        raise AssertionError(message)
