8

Well, today I felt like the witch from the sleeping hollow movie.

I was working on a code that logins to a page and download files to a folder, according to the user.

Well, I tried to use the webservices from the page (like it should be) but the links were broken, and I lost a entire working day on trying the API 😮

The second day I tried with Selenium. Everything was going ok, but I wanted to run it without opening the browser and I found a “Headless Chrome”. At the end of the day, I found several blogs saying that Headless Chrome can’t download files 😱 second working day lost

Today I read about “PhantomJS”. I tried the code in C# with OpenQA.Selenium.PhantomJS BUUUUUUT it was missing 😡 I also tried with Python, but I had the same problem.

Finally, I found a blog with a solution for C# with Headless Chrome 😄

Comments
  • 3
    How about good ol' curl in a shell script? :)
  • 1
    @netikras It was one of my options... curl... the thing is that I need to navigate through the pages, click buttons, etc. And I already solved the code, but I’ll consider it for future problems. Thanks a lot 😁
  • 1
    If you'd be able to do it in python just use mechanize :)
  • 0
    @Freytag thanks 😁 by the way, does your nickname mean “Friday” (Freitag)?
Add Comment