-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only able to take a screenshot when using just webdriver. #363
Comments
@CalumR23 do you have full exception stacktrace? or any other details? it's hard to imagine what's happened |
@valfirst the only code that works is: BaseWebDriverImpl is the file I am creating the new aShot as shown above. |
Heres when using a webElement: |
Hello I am trying to test out aShot and it only works when I use just webdriver. When trying the viewport scrolling:
Screenshot myScreenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(100)).takeScreenshot(webDriver);
I get the below error:
java.lang.Exception: org.apache.commons.io.IOUtils.toString(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String; at ru.yandex.qatools.ashot.util.InnerScript.execute(InnerScript.java:27) 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)
I am confused on what exactly is going on and have updated all my dependencies to match the current version required by aShot/
Thank you for your time on this.
The text was updated successfully, but these errors were encountered: