-
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
Unable to get screenshot in headless Chrome #103
Comments
if You need my system info:
|
Hi, @olalob Could you please provide the docker image which is used for it? |
Hello @pazone, here is my Docker file (sorry comments are formatted as headers here): FROM ubuntu:xenial Update & upgrade systemRUN apt-get update && Install required packagesRUN apt-get install -yq wget ca-certificates openjdk-8-jre-headless Install ChromeRUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && Install international fontsRUN apt-get install -yq fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core Installation cleanupRUN apt-get clean && Create data directoryRUN mkdir /data Add chrome userRUN addgroup chrome && Expose Chrome remote debugging portEXPOSE 9222 |
So, the solution is to use common docker image or to add |
Thanks! I try Your suggestion. |
But purpose of headless chrome (that has been added recently) is to
eliminate need of xvfb.
Can you please fix that.
…On Aug 23, 2017 7:30 PM, "olalob" ***@***.***> wrote:
Thanks! I try Your suggestion.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABzD0ThBb_v2M5uh-_3aHJFx7GvYUDQbks5sbGHOgaJpZM4Oea9v>
.
|
Hello,
I try to get a screenshot in headless Chrome (inside Docker) via
Screenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(10)).takeScreenshot(driver)
and on-time get the Execption:
and next time another:
but never without error :(
Maybe I must use another Strategy? Without ViewPortPasting I get no errors, but the created screenshot has only the viewable part of page without scrolling.
Could You please help me?
Thanks.
The text was updated successfully, but these errors were encountered: