taiko
Version:
Taiko is a Node.js library for automating Chromium based browsers
21 lines (19 loc) • 495 B
JavaScript
const Element = require("./element");
class FileField extends Element {
async value() {
function getvalue() {
return this.value;
}
const options = { objectId: this.get() };
const { result } = await this.runtimeHandler.runtimeCallFunctionOn(
getvalue,
null,
options,
);
return result.value;
}
static from(element, description) {
return new FileField(element.get(), description, element.runtimeHandler);
}
}
module.exports = FileField;