You can use “type”command to type in a file input box of upload file. Then, you have to use “Robot” class in JAVA to make file upload work.