mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
13 lines
350 B
JavaScript
13 lines
350 B
JavaScript
|
// Copyright (c) Microsoft Corporation.
|
||
|
// Licensed under the MIT license.
|
||
|
|
||
|
module.exports = browser => {
|
||
|
if (browser === 'chromium')
|
||
|
return require('./chromium');
|
||
|
if (browser === 'firefox')
|
||
|
return require('./firefox');
|
||
|
if (browser === 'webkit')
|
||
|
return require('./webkit');
|
||
|
throw new Error(`Unsupported browser "${browser}"`);
|
||
|
};
|