【发布时间】:2019-12-09 04:07:16
【问题描述】:
我尝试了下面的代码,但它不起作用。有人可以帮我了解如何在量角器中使用autoit 上传文件吗?
var path = require('path');
var file = "../Snaptrude/plans/"+filepath+"";
console.log('file path',file)
var filePath = path.resolve(__dirname, file);
// browser.sleep(3000);
element(by.css('input[type="file"]')).sendKeys(filePath);
【问题讨论】:
标签: file-upload jasmine protractor autoit