You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am unable to take full page screenshot , my code is below, i am using java 8.
ChromeOptions options = new ChromeOptions();
//options.addArguments("headless");
driver = new ChromeDriver(options);
driver.get("https://aib.ie");
driver.manage().window().maximize();
Screenshot screenshot=new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000)).takeScreenshot(driver); //getting error here while taking full page screenshot.
rg.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.lang.RuntimeException: java.lang.NullPointerException
at ru.yandex.qatools.ashot.util.InnerScript.execute(InnerScript.java:32)
at ru.yandex.qatools.ashot.shooting.ViewportPastingDecorator.getFullHeight(ViewportPastingDecorator.java:67)
at ru.yandex.qatools.ashot.shooting.ViewportPastingDecorator.getScreenshot(ViewportPastingDecorator.java:41)
at ru.yandex.qatools.ashot.shooting.ViewportPastingDecorator.getScreenshot(ViewportPastingDecorator.java:35)
at ru.yandex.qatools.ashot.AShot.takeScreenshot(AShot.java:145)
The text was updated successfully, but these errors were encountered:
Hi Team,
i am unable to take full page screenshot , my code is below, i am using java 8.
ChromeOptions options = new ChromeOptions();
//options.addArguments("headless");
driver = new ChromeDriver(options);
driver.get("https://aib.ie");
driver.manage().window().maximize();
Screenshot screenshot=new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000)).takeScreenshot(driver); //getting error here while taking full page screenshot.
Maven
org.seleniumhq.selenium selenium-java 3.13.0 compileError
rg.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.lang.RuntimeException: java.lang.NullPointerException
at ru.yandex.qatools.ashot.util.InnerScript.execute(InnerScript.java:32)
at ru.yandex.qatools.ashot.shooting.ViewportPastingDecorator.getFullHeight(ViewportPastingDecorator.java:67)
at ru.yandex.qatools.ashot.shooting.ViewportPastingDecorator.getScreenshot(ViewportPastingDecorator.java:41)
at ru.yandex.qatools.ashot.shooting.ViewportPastingDecorator.getScreenshot(ViewportPastingDecorator.java:35)
at ru.yandex.qatools.ashot.AShot.takeScreenshot(AShot.java:145)
The text was updated successfully, but these errors were encountered: