code: public static String htmlOf(WebElement webElement) {
          if (webElement == null) {
              return "Element is null";
          }
          String innerHtml = innerHtmlOf(webElement);
          if (StringUtils.isBlank(innerHtml)) {
              return "<" + Bot.tagNameOf(webElement) + prependSpaceIfNotBlank(attributesIn(webElement)) + " />";
          }
          return "<" + Bot.tagNameOf(webElement) + prependSpaceIfNotBlank(attributesIn(webElement)) + ">"
                  + surroundNewLinesIfContainsNewLine(innerHtml)
                  + "</" + Bot.tagNameOf(webElement) + ">";
  
      }
docs: /* Html