code: def page_should_not_contain_element(self, locator, loglevel='INFO'):
          
          if self._is_element_present(locator):
              self.log_source(loglevel)
              raise AssertionError("Page should not have contained element '%s'" % locator)
          self._info("Current page not contains element '%s'." % locator)
docs: Verifies that current page not contains `locator` element.
  
          If this keyword fails, it automatically logs the page source
          using the log level specified with the optional `loglevel` argument.
          Giving `NONE` as level disables logging.