There are quite a few posts about facebook/php-webdriver successfully downloading files when non-headless, and the same operation failing when headless. I'm looking for a successful implementation of RemoteWebdriver downloading headlessly for this library (facebook/php-webdriver).
The following article suggests that the library does not yet have the flexibility to set a custom command ("Page.setDownloadBehavior"), which may be what's needed for successful headless downloads. But I have not yet seen an example of a working solution in PHP.
https://github.com/facebook/php-webdriver/issues/605
Any working solutions out there? Thank you.