0

tl;dr: I want to do what Python 2.7 - Selenium headless testing with Xvfb not working <-- this person does, but on Windows.

Non-negotiable: Navigate a headless webdriver that allows for download of files.

From reading other answers, it looks like xvfb isn't available for Windows, so PyVirtualDisplay can't be used with Chrome: easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] OSError=[Errno 2] No such file or directory

It also seems like it requires a lot of crazy hacks to get PhantomJS to download files.

Some answers suggest the use of urrlib or HTTPrequest:

Basic http file downloading and saving to disk in python?

How to download a file with Python, Selenium and PhantomJS

...which would work, except to get to the files I want to download, I have to login and do a bunch of Xpath navigating, using Selenium.

Is there an easier way to do this? (in the hope that there's something new since the previous related posts)

Community
  • 1
  • 1
Suzanne
  • 582
  • 2
  • 11
  • 31

0 Answers0