I am trying to take screenshot using Selenium Webdriver.
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File(File_Location));
Now the issue is that for IE and Firefox the size of the screenshots differ even though I set dimension of window.
Can anybody give me suggestion how can I get screenshots of same size for all browser?