playwright-fluent
Version:
Fluent API around playwright
12 lines (11 loc) • 364 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAttributeOfHandle = void 0;
async function getAttributeOfHandle(attributeName, selector) {
if (!selector) {
return null;
}
const result = await selector.getAttribute(attributeName);
return result;
}
exports.getAttributeOfHandle = getAttributeOfHandle;
;