on-internet
← Community

Take a full-page screenshot using a Chromium-based driver? [duplicate]

Stack Overflow ·

I’m practicing Selenium and ran into an issue with screenshots. For a normal screenshot, I’m using: File source = ((TakesScreenshot) driver) .getScreenshotAs(OutputType.FILE); This works fine with my Chromium-based driver. However, when I try to take a full-page screenshot: File screenshot = ((HasFullPageScreenshot) driver) .getFullPageScreenshotAs(OutputType.FILE); HasFullPageScreenshot seems to be associated with Firefox in my IDE/imports, and I’m not sure how to use it with a Chromium-based driver. I want to continue using a Chromium-based driver (Chrome/Chromium) rather than Firefox. What

Comments

Sign in or sign up to comment and upvote.

No comments yet.