我要检查文件是否已下载?但是在运行测试用例时,我在conf.js和验证功能中遇到了错误。
verifyFileDownload: function() {
var filename = global./home/chetan/Downloads + '/c150_download.json';
browser.driver.wait(function() {
return fs.existsSync(filename);
}, 30000).then(function() {
console.log("Getting the ERROR while downloading file as file is not downloaded.");
});