-
Notifications
You must be signed in to change notification settings - Fork 139
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
How to get Chrome headless to download files? #679
Comments
I am facing the same issue, were you been able to solve it? |
Same issue. |
Any progress on this? I'm having the same issue. |
I have this working, but I did it without the "--headless" mode. I was previously under the impression that the only way to make Chimp test Chrome in a docker container was the use the headless mode. I was wrong. Just remove the headless and everything works fine, even when in a docker container or running on a machine without a monitor. |
@rsshilli did you ever get an error message like this
when you run not headless chrome in docker-container? |
@rsshilli |
You have to pass in the full path to the file, right? It looks like from the error message that you just passed in the filename itself ( |
I am also facing this problem. Anyone able to make it work? Thanks |
@wuthiago I made it work. Are you using the full path for the filename? |
@rsshilli were you able to download files with the "--headless" mode on? |
No, I never tried that, TBH.
…On Thu, Jul 19, 2018 at 9:34 AM, wuthiago ***@***.***> wrote:
@rsshilli <https://github.com/rsshilli> were you able to download files
with the "--headless" mode on?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#679 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACXzBRAODZymhQ1-bXVd62HfDqkpKaePks5uIIrngaJpZM4R8Mnm>
.
--
*Ryan Shillington*
CTO
CherryCircle Software, Inc.
1701 Trinity Street
<https://maps.google.com/?q=1701+Trinity+Street+Austin,+TX+78712&entry=gmail&source=g>
Austin, TX 78712
<https://maps.google.com/?q=1701+Trinity+Street+Austin,+TX+78712&entry=gmail&source=g>
Direct: 512.426.4389
www.cherrycirclesoftware.com
www.qbdvision.com
|
Hi, |
No, I gave up and used xvfb. Headless chrome had all kinds of problems for
me.
…On Thu, Jul 19, 2018 at 10:52 AM, komalanandpandey ***@***.*** > wrote:
Hi,
did any one get luck on downloading file using "headless chrome" , please
help! Regards!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#679 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAKQmFOp-quMdn3JVk-I-0ZAsU-NMPdNks5uIJ0bgaJpZM4R8Mnm>
.
|
Here's a solution that work for me : Setting the driver options:
Downloading a file:
IMPORTANT : You have to call time.sleep(x) to let some time for the download to finish, if the driver close before the end of file download, solution won't work |
This issue is being tracked in Chimpy |
How do I download files using Chrome headless? I see that:
I'm having a hard time piecing together how I get this working from my Chimp world.
Versions:
I've tried a number of things playing with the configuration, trying things like this below, but nothing works:
My mechanism for downloading a file is to click on the download link and then use
fs
to wait for the file on the file system, which never shows up :(. This worked fine before adding --headlessThe text was updated successfully, but these errors were encountered: