Watai
Watai copied to clipboard
File inputs should be settable through magic setters
Considering a widget with a fileField element being an <input type="file">, this.setFileField(filePath) does not work because it fails on the clear, leading to the need for this workaround:
upload: function upload(filePath) {
return this.fileField.then(function(fileField) {
return fileField.sendKeys(filePath);
}
}