File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
We are running in headless mode in AWS. The screen shot is getting proper when I do in Windows but not in AWS when I do Selenium Automation. After write to ZOOM the running for open in big screen but it is not working,
JavascriptExecutor jse = (JavascriptExecutor)driver;
Thread.sleep(3000);
jse.executeScript("document.body.style.zoom='100%'");
I expecting the screenshot as shown on the Browser.