简体   繁体   English

Valums-File-Uploader-使用Java和Selenium提交文件

[英]Valums-File-Uploader - Submit file using Java and Selenium

Im trying to submit a file to Valums-File-Uploader but im having trouble getting the file to submit/upload action to start. 我试图将文件提交给Valums-File-Uploader,但是我无法使文件开始提交/上传操作。 Im able to send example.txt to the file input but I am unable to make the submit action take place. 我能够将example.txt发送到文件输入,但是我无法进行提交操作。 Does anyone know how I can do this? 有人知道我该怎么做吗?

Any help would be appreciated. 任何帮助,将不胜感激。

The problem was that i wasnt using an absolute path which Valums-File-Uploader requires. 问题是我没有使用Valums-File-Uploader所需的绝对路径。

.sendKeys("C:\\workspace\\project\\src\\resources\\data\\ExampleCV.docx"); .sendKeys(“ C:\\ workspace \\ project \\ src \\ resources \\ data \\ ExampleCV.docx”);

use double \\ 用双

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM