'Verifies that the element identified by `locator` is NOT visible.
This is the opposite of `Element Should Be Visible`.
`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_should_not_be_visible(self, locator, message=''):

    self.info(("Verifying    element    '%s'    is    not    visible." % locator))
    visible = self.is_visible(locator)
    if visible:
        if (not message):
            message = ("The    element    '%s'    should    not    be    visible,    but    it    is." % locator)
        raise AssertionError(message)
