File upload 无法使用robot framework选择和上载文件

File upload 无法使用robot framework选择和上载文件,file-upload,robotframework,File Upload,Robotframework,我正在尝试使用robot framework test automation为我的测试应用程序浏览、选择和上载文件。我已经尝试了下面提到的代码。它不起作用了。请帮我做这个 我试过这个- Choose File //span[contains(text(), 'Browse')] C:/Automation/Data/Test File.txt Click Button id=btnupload HTML代码为- <div class="panel-footer" styl

我正在尝试使用robot framework test automation为我的测试应用程序浏览、选择和上载文件。我已经尝试了下面提到的代码。它不起作用了。请帮我做这个

我试过这个-

Choose File //span[contains(text(), 'Browse')]  C:/Automation/Data/Test File.txt
Click Button    id=btnupload    
HTML代码为-

<div class="panel-footer" style="">
<span class="btn btn-default btn-file" style="">
Browse 
<input id="file" type="file" name="file" style=""/>
</span>
<button id="btnupload" class="btn btn-default" disabled="" onclick="sendFile()" type="button">
<i class="glyphicon glyphicon-upload"/>
Upload
</button>
</div>

浏览
上传

经过多次尝试,我终于找到了工作代码集。下面提到:


选择文件id=文件C:\\Automation\\Data\\Test File.txt
单击按钮id=btnupload

什么叫“它不工作”?为什么不起作用?你有错误吗?如果是,错误是什么?没有错误。关键字“选择文件”已成功执行。但是,文件没有被浏览和上传。