title: How Selenium webdriver screenshot capturing method can be used while reading a data from .xlsx file using POI?
body: <p>As in Excel multiple rows are present, having different set of data and I want to take screenshot for each and every step like this</p>
  
  <pre><code>driver.get("http://www.google.com/");
      File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
      // Now you can do whatever you need to do with it, for example copy somewhere
      FileUtils.copyFile(scrFile, new File("c:\\tmp\\screenshot1.png"));
      driver.get("http://www.yahoo.com/");
      File scrFile1 = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
      // Now you can do whatever you need to do with it, for example copy somewhere
      FileUtils.copyFile(scrFile1, new File("c:\\tmp\\screenshot2.png"));
  </code></pre>
  
  <p>How the same will be repeated for each Excel row.</p>
  
  <p>As if I hardcode the value of "Screenshot1, ...2, etc." at the end I will get only 2 screenshots instead of 2 screenshots for each row record.</p>