"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.launchBrowser = launchBrowser;
const playwright_1 = require("playwright");
async function launchBrowser(config) {
    const browserType = {
        chromium: playwright_1.chromium,
        firefox: playwright_1.firefox,
        webkit: playwright_1.webkit
    }[config.browser];
    return browserType.launch({ headless: config.headless });
}
