How to use the gemini-core.BrowserPool.create function in gemini-core

To help you get started, we’ve selected a few gemini-core 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 gemini-testing / gemini / lib / browser-pool.js View on Github external
forBrowser: (id) => {
            const browserConfig = config.forBrowser(id);
            return {
                parallelLimit: browserConfig.sessionsPerBrowser,
                sessionUseLimit: browserConfig.suitesPerSession
            };
        },

        getBrowserIds: () => config.getBrowserIds(),

        get system() {
            return config.system;
        }
    };

    return BrowserPool.create(BrowserManager, {
        logNamespace: 'gemini',
        config: configAdapter
    });
};
github gemini-testing / hermione / lib / browser-pool / index.js View on Github external
forBrowser: (id) => {
            const browserConfig = config.forBrowser(id);
            return {
                parallelLimit: browserConfig.sessionsPerBrowser,
                sessionUseLimit: browserConfig.testsPerSession
            };
        },

        getBrowserIds: () => config.getBrowserIds(),

        get system() {
            return config.system;
        }
    };

    return QBrowserPool.create(BrowserPool.create(BrowserManager, {
        logNamespace: 'hermione',
        config: configAdapter
    }));
};