code: public static PageSnapshot shootPage(WebDriver driver, boolean useDevicePixelRatio) {
          Browser browser = new Browser(driver, useDevicePixelRatio);
          PageSnapshot pageScreenshot = new PageSnapshot(driver,browser.getDevicePixelRatio());
          pageScreenshot.setImage(browser.takeScreenshot());
          return pageScreenshot;
      }
docs: Make screen shot of the viewport only.
  To be used when screen shooting the page
  and don't need to scroll while making screen shots (FF, IE).
  
  @param driver WebDriver instance
  @param useDevicePixelRatio whether or not take into account device pixel ratio
  @return PageSnapshot instance