I am automating a UI test where selecting file to upload is involved, I was able to automate the file selection using this solution.
WebElement filepath=driver.findElement(By.id("fileUploadId"));
filepath.sendKeys("C:\TextFile.txt");
My issue is that I need to select many files to upload, is there a special format I should follow in the path I am sending? because I tried space-separated paths and it didn't work.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…