Skip to content
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

IE11: Full page screenshot not working.java.lang.ArithmeticException #313

Open
ravibabu101143 opened this issue Jul 8, 2022 · 2 comments

Comments

@ravibabu101143
Copy link

Hi,

I was trying to take full page screenshot and so far no luck. Versions i tried are 1.5.4,1.4.4,1.46.

I tried this and full page screenshot is not captured.
Screenshot screenshot = (new AShot()).takeScreenshot(getDriver());

Then i tried this code getting java.lang.arithmeticexception error:

Screenshot screenshot = new AShot().shootingStrategy(new ViewportPastingStrategy(1500)).takeScreenshot(driver());

Error:
java.lang.ArithmeticException: / by zero
at ru.yandex.qatools.ashot.screentaker.VerticalPastingShootingStrategy.getScreenshot(VerticalPastingShootingStrategy.java:37) ~[ashot-1.4.6.jar:?]
at ru.yandex.qatools.ashot.screentaker.ScreenTaker.take(ScreenTaker.java:23) ~[ashot-1.4.6.jar:?]
at ru.yandex.qatools.ashot.AShot.takeScreenshot(AShot.java:166) ~[ashot-1.4.6.jar:?]
at com.automation.report.AllureManager.takeFullScreenshot(AllureManager.java:153) ~[classes/:?]
at com.automation.report.AllureManager.takeScreenshotToAttachOnAllureReport(AllureManager.java:98) ~[classes/:?]
at com.automation.AllureStepListener.afterStepUpdate(AllureStepListener.java:40) ~[test-classes/:?]
at io.qameta.allure.listener.LifecycleNotifier.lambda$runSafely$0(LifecycleNotifier.java:211) ~[allure-java-commons-2.17.3.jar:2.17.3]
at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
at io.qameta.allure.listener.LifecycleNotifier.runSafely(LifecycleNotifier.java:209) ~[allure-java-commons-2.17.3.jar:2.17.3]
at io.qameta.allure.listener.LifecycleNotifier.afterStepUpdate(LifecycleNotifier.java:193) ~[allure-java-commons-2.17.3.jar:2.17.3]
at io.qameta.allure.AllureLifecycle.updateStep(AllureLifecycle.java:521) ~[allure-java-commons-2.17.3.jar:2.17.3]
at io.qameta.allure.AllureLifecycle.updateStep(AllureLifecycle.java:501) ~[allure-java-commons-2.17.3.jar:2.17.3]
at io.qameta.allure.aspects.StepsAspects.stepStop(StepsAspects.java:92) ~[allure-java-commons-2.17.3.jar:2.17.3]

@ravibabu101143
Copy link
Author

@ravibabu101143 IE is dead: https://blogs.windows.com/windowsexperience/2022/06/15/internet-explorer-11-has-retired-and-is-officially-out-of-support-what-you-need-to-know/

Yes I am aware of that. But still Microsoft supporting launching web applications in IE mode in edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants