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.

takeElementScreenshot.js 458B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const utils_1 = require("../utils");
  4. async function takeElementScreenshot({ elementId }) {
  5. const elementHandle = await this.elementStore.get(elementId);
  6. if (!elementHandle) {
  7. throw utils_1.getStaleElementError(elementId);
  8. }
  9. return elementHandle.screenshot({
  10. encoding: 'base64',
  11. type: 'png'
  12. });
  13. }
  14. exports.default = takeElementScreenshot;