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
download,err:=page.ExpectDownload(func() error {
return page.Click("#ctl32_ctl05_ctl04_ctl00_Menu > div:nth-child(6) > a")
})
fmt.Println(err) // nil
fmt.Println(download.SuggestedFilename()) // "User Metrics.csv"
// Stuck Here
// =======
// stuck when execute one of the Failure(), Path() or SaveAs() functions.
// I can see the file is downloaded in the folder with a temporary name such as "32a609ac-c0c0-4e87-8bd6-ed4d69c6f474"
// And the file content is right, but the program stops here
fmt.Println(download.Failure())
// Press Ctrl + C from command line shows the following error message
exit status 2
The process tried to write to a nonexistent pipe.
How can I fix this problem?
The text was updated successfully, but these errors were encountered:
I tried to download a
csv
file from a page and it stuck when executedownload.Path()
ordownload.Failure()
, etc.HTML Source code:
Go code:
How can I fix this problem?
The text was updated successfully, but these errors were encountered: