I'm using Selenium webdriver to write an automation testing tool in Java
.
This tool will run on a headless server via Jenkins call. My problem is to handle multiple files upload. Selenium can not open browser, so that when I click on upload button on website, the select files popup also not appear.
I'm wondering if there are any other solutions for me to handle the upload multi files during automate testing.
P.S. I can handle single file upload using sendkeys
function. But I can not do that to handle multiple files upload.
P.P.S I can not using AutoIT or Robot
class to handle the popup dialog (because there is no popup dialog because of headless server)
C:.../f1 \n C:.../f2
and use sendkeys? Put a new line\n
after every file.