We have integrated Selenium and Browserstack into betajs-browser to facilitate automated tests for file uploading. This cannot be done with regular automated unit tests as the files themselves need to be selected by an outside system, here: Selenium.

This works pretty well for Internet Explorer 9-11, Chrome and Firefox. We were not able to get it to run with Edge, Safari, Opera, iOS and Android, but that seems to be consistent with what browser automation frameworks currently have to offer.