code: public PageSnapshot highlightWithText(WebElement element, Color elementColor, int lineWidth, String text, Color textColor, Font textFont) {
         try {
             highlight(element, elementColor, 0);
             Coordinates coords = new Coordinates(element, devicePixelRatio);
             image = ImageProcessor.addText(image, coords.getX(), coords.getY() - textFont.getSize() / 2, text, textColor, textFont);
         } catch (RasterFormatException rfe) {
             throw new ElementOutsideViewportException(ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE, rfe);
         }
          return this;
      }
docs: Highlight WebElement within the page, same as in {@link #highlight(WebElement)}
  but providing ability to override default color, font values.
  
  @param element WebElement to be highlighted
  @param elementColor element highlight color
  @param lineWidth line width around the element
  @param text text to be placed above the highlighted element
  @param textColor color of the text
  @param textFont text font
  @return instance of type PageSnapshot