UNPKG

webdriverio-automation

Version:

WebdriverIO-Automation android ios project

15 lines (13 loc) 302 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = takeScreenshot; async function takeScreenshot() { const page = this.windows.get(this.currentWindowHandle); return page.screenshot({ encoding: 'base64', fullPage: true, type: 'png' }); }