public String renderSummary() {
    StringBuilder builder = new StringBuilder();
    builder.append("<fieldset>");

    builder
        .append("<legend>")
        .append(
            "<img width='30' src='/grid/resources/images/mac.png' style='vertical-align:middle;' title='"
                + proxy.getClass().getSimpleName() + "'/>")
        .append(proxy.getClass().getSimpleName()).append("</legend>");

    builder.append("<div id='browsers'>");
    for (TestSlot slot : proxy.getTestSlots()) {
      builder.append("<a href='#' ");
      builder.append(" title='").append(slot.getCapabilities()).append("' ");
      builder.append(" >");

      String icon = null;

      if (BROWSER_NAME.equals(slot.getCapabilities().get(RegistrationRequest.BROWSER))) {
        icon = "selendroid";
      } else {
        icon =
            BrowserNameUtils.consoleIconName(new DesiredCapabilities(slot.getCapabilities()),
                proxy.getRegistry());
      }

      builder.append("<img src='/grid/resources/images/" + icon + ".png' height='20px' ");

      builder.append("</a>");
    }

    builder.append("</div>");
    builder.append("</fieldset>");
    return builder.toString();
  }
Selendroid node renderer used in the Selenium Grid hub.

@author ddary
selendroid-grid-plugin/src/main/java/io/selendroid/grid/SelendroidNodeHtmlRenderer.java