How to use the testcafe-browser-tools.findWindow 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 _ensureBrowserWindowDescriptor (browserId: string): Promise {
        if (this._getWindowDescriptor(browserId))
            return;

        await this._ensureLocalBrowserInfo(browserId);

        // NOTE: delay to ensure the window finished the opening
        await this.plugin.waitForConnectionReady(browserId);
        await delay(BROWSER_OPENING_DELAY);

        if (this.localBrowsersInfo[browserId])
            this.localBrowsersInfo[browserId].windowDescriptor = await browserTools.findWindow(browserId);
    }
github DevExpress / testcafe / src / runner / bootstrapper.ts View on Github external
            () => findWindow(''),
            errors.UnableToAccessScreenRecordingAPIError,
github DevExpress / testcafe / src / browser / provider / built-in / remote.js View on Github external
async openBrowser (browserId) {
        if (!this.canDetectLocalBrowsers)
            return;

        await this.waitForConnectionReady(browserId);

        const localBrowserWindow = await findWindow(browserId);

        this.localBrowsersFlags[browserId] = localBrowserWindow !== null;
    },