Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getElementComputedLabel.js 452B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. async function getElementComputedLabel({ elementId }) {
  4. const page = this.getPageHandle(true);
  5. const elementHandle = await this.elementStore.get(elementId);
  6. const snapshot = await page.accessibility.snapshot({
  7. root: elementHandle
  8. });
  9. if (!snapshot) {
  10. return '';
  11. }
  12. return snapshot.name;
  13. }
  14. exports.default = getElementComputedLabel;