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.

elementClear.js 690B

1234567891011121314151617
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const elementClear_1 = __importDefault(require("../scripts/elementClear"));
  7. const utils_1 = require("../utils");
  8. async function elementClear({ elementId }) {
  9. const elementHandle = await this.elementStore.get(elementId);
  10. if (!elementHandle) {
  11. throw utils_1.getStaleElementError(elementId);
  12. }
  13. const page = this.getPageHandle(true);
  14. await page.$eval('html', elementClear_1.default, elementHandle);
  15. return null;
  16. }
  17. exports.default = elementClear;