Can any one please help taking screen shots and saving on specific folder on Mac while running selenium webdriver automation scripts using java??
Note: I used static in my code so i cannot use below code
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File("D:\\screenshot.jpg"));
Thanks in advance !!