Closed
Description
I have this code: (via codeceptjs)
async attachFile(locator, pathToFile) {
const file = path.join(global.codecept_dir, pathToFile);
if (!fileExists(file)) {
throw new Error(`File at ${file} can not be found on local system`);
}
const els = await findFields.call(this, locator);
assertElementExists(els, 'Field');
await els[0].uploadFile(file);
return this._waitForAction();
}
In in 2.0.0 this works but in 2.1.0 and 2.1.1 this no longer works.
Metadata
Assignees
Labels
No labels