

The Take Screenshot command takes a screenshot of the top-level browsing context’s VIEWPORT. If you read the definition, it clearly states the following: Thus, they are dependent on the way the WebDriver team wants to expose the functionality of different features, in our case, 'Take Screenshot'. Now regarding the full page problem, all drivers ( chromedriver, geckodriver, IEDriver, EdgeDriver, etc.) are implementing the WebDriver W3C standard. Load page & take screenshot of full-screen pageįile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE) WebDriver driver = new ChromeDriver(options) Creating a driver instance with the previous capabilities Options.add_argument('-start-fullscreen') Options.add_argument('-start-maximized') Your code should look like this: // Setting your Chrome options (Desired capabilities)ĬhromeOptions options = new ChromeOptions()


I come from a NodeJS testing environment, so I can only vouch the following: WebdriverIO & Google's Puppeteer. There are quite a handful of web testing frameworks that can ( with minimal setup & effort) produce a full-page screenshot. LE: I see quite a lot of people are interested in the full-page screenshot, so I thought I might update the answer with some positives ( silver bullets).
