Javascript CasperJS不带表单上传文件
我有以下意见:Javascript CasperJS不带表单上传文件,javascript,casperjs,Javascript,Casperjs,我有以下意见: <input id="expertises" name="expertises" type="file" data-role="upload" multiple="multiple" autocomplete="off"> 但是什么也没发生(没有错误)。 有什么问题 谢谢 casper.wait(1000).thenOpen(url+'/Affaidde/1267421/qsd', function() { this.page.uploadFile
<input id="expertises" name="expertises" type="file" data-role="upload" multiple="multiple" autocomplete="off">
但是什么也没发生(没有错误)。
有什么问题
谢谢
casper.wait(1000).thenOpen(url+'/Affaidde/1267421/qsd', function() {
this.page.uploadFile('input[id=expertises]', 'path');
this.wait(5000, function() {
this.echo("I've waited for a second.");
});
});