'Verifies element identified by `locator` exactly contains text `expected`.
In contrast to `Element Should Contain`, this keyword does not try
a substring match but an exact match on the element identified by `locator`.
`message` can be used to override the default error message.
Key attributes for arbitrary elements are `id` and `name`. See
`introduction` for details about locating elements.'

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

    self.info(("Verifying    element    '%s'    contains    exactly    text    '%s'." % (locator, expected)))
    element = self.find_element(locator)
    actual = element.text
    if (expected != actual):
        if (not message):
            message = ("The    text    of    element    '%s'    should    have    been    '%s'    but    in    fact    it    was    '%s'." % (locator, expected, actual))
        raise AssertionError(message)
