code: public String htmlSource() {
          try {
              return driver.getPageSource();
          } catch (Exception e) {
              log.warn(e);
              return null;
          }
      }
docs: Retrieves the full html source of the current page the application is on
  
  @return String - current application page source