playwright-fluent
Version:
Fluent API around playwright
15 lines (14 loc) • 415 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getValueOfHandle = void 0;
async function getValueOfHandle(selector) {
if (!selector) {
return null;
}
const result = await selector.evaluate((el) => {
const inputElement = el;
return inputElement && inputElement.value;
});
return result;
}
exports.getValueOfHandle = getValueOfHandle;
;