2

I want to take full page screenshot of webpage in chrome and safari browser using java selenium.

I tried:

File src1 = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(src1, new File(path));

This code. But it is taking screenshot of only visible part.

Nikhil
  • 3,711
  • 8
  • 32
  • 43
rohit shetty
  • 31
  • 2
  • 5

0 Answers0