How to use the testcafe-browser-tools.screenshot function in testcafe-browser-tools

To help you get started, we’ve selected a few testcafe-browser-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DevExpress / testcafe / src / browser / provider / index.ts View on Github external
private async _takeLocalBrowserScreenshot (browserId: string, screenshotPath: string): Promise {
        await browserTools.screenshot(this._getWindowDescriptor(browserId), screenshotPath);
    }