Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: update top-level api (#479)
Dmitry Gozmanb38872277764
diff --git a/.gitignore b/.gitignoreindex 3d0c2d5b9d..589960ef12 100644--- a/.gitignore+++ b/.gitignore@@ -18,7 +18,6 @@ yarn.lock/src/chromium/protocol.ts/src/firefox/protocol.ts/src/webkit/protocol.ts-/utils/browser/playwright-web.jslib/playwright-*.tgz/web.jsdiff --git a/.npmignore b/.npmignoreindex 037bf682a9..6b7ce811a4 100644--- a/.npmignore+++ b/.npmignore@@ -9,7 +9,7 @@ lib/injected/#types!lib/**/*.d.ts!index.d.ts-!web.d.ts+# Install!install.js@@ -18,12 +18,3 @@ lib/injected/# root for "playwright/web"!web.js--# specific browsers-!chromium.js-!firefox.js-!webkit.js--# dgozman says to remove these-!DeviceDescriptors.js-!Errors.jsdiff --git a/DeviceDescriptors.js b/DeviceDescriptors.jsdeleted file mode 100644index 5b4ab87e1c..0000000000--- a/DeviceDescriptors.js+++ /dev/null@@ -1,20 +0,0 @@-/**- * Copyright 2019 Google Inc. All rights reserved.- * Modifications copyright (c) Microsoft Corporation.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--const {DeviceDescriptors} = require('./lib/deviceDescriptors');--module.exports = DeviceDescriptors;diff --git a/Errors.js b/Errors.jsdeleted file mode 100644index 5475d2223d..0000000000--- a/Errors.js+++ /dev/null@@ -1,17 +0,0 @@-/**- * Copyright 2018 Google Inc. All rights reserved.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--module.exports = require('./lib/errors');diff --git a/README.md b/README.mdindex e76b23e78d..d4d3b86a50 100644--- a/README.md+++ b/README.md@@ -31,7 +31,7 @@ This code snippet navigates to example.com in WebKit, and saves a screenshot.const pw = require('playwright');(async () => {- const browser = await pw.playwright('webkit').launch(); // or 'chromium', 'firefox'+ const browser = await pw.webkit.launch(); // or 'chromium', 'firefox'const context = await browser.newContext();const page = await context.newPage();@@ -50,7 +50,7 @@ This code snippet navigates to example.com in Firefox, and executes a script inconst pw = require('playwright');(async () => {- const browser = await pw.playwright('firefox').launch(); // or 'chromium', 'webkit'+ const browser = await pw.firefox.launch(); // or 'chromium', 'webkit'const context = await browser.newContext();const page = await context.newPage();diff --git a/chromium.js b/chromium.jsdeleted file mode 100644index d0e27ffbf6..0000000000--- a/chromium.js+++ /dev/null@@ -1,17 +0,0 @@-/**- * Copyright 2017 Google Inc. All rights reserved.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--module.exports = require('./index').playwright('chromium');diff --git a/docs/api.md b/docs/api.mdindex 287cf76643..c5438745c6 100644--- a/docs/api.md+++ b/docs/api.md@@ -300,7 +300,7 @@Playwright module provides a method to launch a browser instance.The following is a typical example of using Playwright to drive automation:```js-const playwright = require('playwright')('chromium'); // Or 'firefox' or 'webkit'.+const playwright = require('playwright').chromium; // Or 'firefox' or 'webkit'.(async () => {const browser = await playwright.launch();@@ -329,7 +329,7 @@ Returns a list of devices to be used with [`page.emulate(options)`](#pageemulatedevices can be found in [lib/deviceDescriptors.js](https://github.com/Microsoft/playwright/blob/master/src/deviceDescriptors.ts).```js-const playwright = require('playwright')('firefox'); // Or 'chromium' or 'webkit'.+const playwright = require('playwright').firefox; // Or 'chromium' or 'webkit'.const iPhone = playwright.devices['iPhone 6'];(async () => {@@ -376,7 +376,7 @@ A Browser is created when Playwright connects to a browser instance, either throAn example of using a [Browser] to create a [Page]:```js-const playwright = require('playwright');+const playwright = require('playwright').firefox; // Or 'chromium' or 'webkit'.(async () => {const browser = await playwright.launch();@@ -388,7 +388,7 @@ const playwright = require('playwright');An example of disconnecting from and reconnecting to a [Browser]:```js-const playwright = require('playwright');+const playwright = require('playwright').webkit; // Or 'chromium' or 'firefox'.(async () => {const browserServer = await playwright.launchServer();@@ -678,7 +678,7 @@ One of the following values: `'log'`, `'debug'`, `'info'`, `'error'`, `'warning'An example of using `Dialog` class:```js-const playwright = require('playwright');+const playwright = require('playwright').chromium; // Or 'firefox' or 'webkit'.(async () => {const browser = await playwright.launch();@@ -715,7 +715,7 @@ const playwright = require('playwright');ElementHandle represents an in-page DOM element. ElementHandles can be created with the [page.$](#pageselector) method.```js-const playwright = require('playwright');+const playwright = require('playwright').chromium; // Or 'firefox' or 'webkit'.(async () => {const browser = await playwright.launch();@@ -982,7 +982,7 @@ At every point of time, page exposes its current frame tree via the [page.mainFrAn example of dumping frame tree:```js-const playwright = require('playwright');+const playwright = require('playwright').firefox; // Or 'chromium' or 'webkit'.(async () => {const browser = await playwright.launch();@@ -1413,7 +1413,7 @@ await page.waitFor(selector => !!document.querySelector(selector), {}, selector)The `waitForFunction` can be used to observe viewport size change:```js-const playwright = require('playwright');+const playwright = require('playwright').firefox; // Or 'chromium' or 'webkit'.(async () => {const browser = await playwright.launch();@@ -1488,7 +1488,7 @@ immediately. If the selector doesn't appear after the `timeout` milliseconds ofThis method works across navigations:```js-const playwright = require('playwright');+const playwright = require('playwright').webkit; // Or 'chromium' or 'firefox'.(async () => {const browser = await playwright.launch();@@ -1770,7 +1770,7 @@ Page provides methods to interact with a single tab or [extension background pagThis example creates a page, navigates it to a URL, and then saves a screenshot:```js-const playwright = require('playwright');+const playwright = require('playwright').webkit; // Or 'chromium' or 'firefox'.(async () => {const browser = await playwright.launch();@@ -2238,7 +2238,7 @@ If the `playwrightFunction` returns a [Promise], it will be awaited.An example of adding an `md5` function into the page:```js-const playwright = require('playwright');+const playwright = require('playwright').firefox; // Or 'chromium' or 'webkit'.const crypto = require('crypto');(async () => {@@ -2262,7 +2262,7 @@ const crypto = require('crypto');An example of adding a `window.readfile` function into the page:```js-const playwright = require('playwright');+const playwright = require('playwright').chromium; // Or 'firefox' or 'webkit'.const fs = require('fs');(async () => {@@ -2758,7 +2758,7 @@ Waits for event to fire and passes its value into the predicate function. ResolvThe `waitForFunction` can be used to observe viewport size change:```js-const playwright = require('playwright');+const playwright = require('playwright').webkit; // Or 'chromium' or 'firefox'.(async () => {const browser = await playwright.launch();@@ -2866,7 +2866,7 @@ immediately. If the selector doesn't appear after the `timeout` milliseconds ofThis method works across navigations:```js-const playwright = require('playwright');+const playwright = require('playwright').chromium; // Or 'firefox' or 'webkit'.(async () => {const browser = await playwright.launch();@@ -3749,7 +3749,7 @@ Playwright can be used for testing Chrome Extensions.The following is code for getting a handle to the [background page](https://developer.chrome.com/extensions/background_pages) of an extension whose source is located in `./my-extension`:```js-const playwright = require('playwright');+const playwright = require('playwright').chromium;(async () => {const pathToExtension = require('path').join(__dirname, 'my-extension');diff --git a/docs/web.md b/docs/web.mdindex 6c74279adf..42ddb52989 100644--- a/docs/web.md+++ b/docs/web.md@@ -10,11 +10,10 @@ API consists of a single `connect` function, similar to[webkitPlaywright.connect(options)](api.md#webkitplaywrightconnectoptions).```html-<script src='../playwright/web.js'></script>+<script src='playwright/web.js'></script><script>async function usePlaywright() {- const connect = window.playwrightweb('chromium'); // or 'firefox', 'webkit'- const browser = await connect(options);+ const browser = await window.playwrightweb.chromium.connect(options); // or 'firefox', 'webkit'// ... drive automation ...await browser.disconnect();}diff --git a/firefox.js b/firefox.jsdeleted file mode 100644index f45f7ee57b..0000000000--- a/firefox.js+++ /dev/null@@ -1,17 +0,0 @@-/**- * Copyright 2017 Google Inc. All rights reserved.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--module.exports = require('./index').playwright('firefox');diff --git a/index.d.ts b/index.d.tsindex 79897e0a2a..98e5823929 100644--- a/index.d.ts+++ b/index.d.ts@@ -15,6 +15,7 @@*/export * from './lib/api';-export function playwright(browser: 'chromium'): import('./lib/api').ChromiumPlaywright;-export function playwright(browser: 'firefox'): import('./lib/api').FirefoxPlaywright;-export function playwright(browser: 'webkit'): import('./lib/api').WebKitPlaywright;+export const chromium: import('./lib/api').ChromiumPlaywright;+export const firefox: import('./lib/api').FirefoxPlaywright;+export const webkit: import('./lib/api').WebKitPlaywright;+export type PlaywrightWeb = typeof import('./lib/web');diff --git a/index.js b/index.jsindex df942e92aa..644f5b919f 100644--- a/index.js+++ b/index.js@@ -19,17 +19,12 @@ const api = require('./lib/api');const packageJson = require('./package.json');for (const className in api) {- // Playwright-web excludes certain classes from bundle, e.g. BrowserFetcher.if (typeof api[className] === 'function')helper.installAsyncStackHooks(api[className]);}-module.exports.playwright = browser => {- if (browser === 'chromium')- return new api.ChromiumPlaywright(__dirname, packageJson.playwright.chromium_revision);- if (browser === 'firefox')- return new api.FirefoxPlaywright(__dirname, packageJson.playwright.firefox_revision);- if (browser === 'webkit')- return new api.WebKitPlaywright(__dirname, packageJson.playwright.webkit_revision);- throw new Error(`Unsupported browser "${browser}"`);+module.exports = {+ chromium: new api.ChromiumPlaywright(__dirname, packageJson.playwright.chromium_revision),+ firefox: new api.FirefoxPlaywright(__dirname, packageJson.playwright.firefox_revision),+ webkit: new api.WebKitPlaywright(__dirname, packageJson.playwright.webkit_revision),};diff --git a/src/web.ts b/src/web.tsindex 742938824c..8ea52344a6 100644--- a/src/web.ts+++ b/src/web.ts@@ -18,14 +18,9 @@ import { CRBrowser as ChromiumBrowser } from './chromium/crBrowser';import { FFBrowser as FirefoxBrowser } from './firefox/ffBrowser';import { WKBrowser as WebKitBrowser } from './webkit/wkBrowser';-function connect(browser: 'chromium' | 'firefox' | 'webkit') {- if (browser === 'chromium')- return ChromiumBrowser.connect;- if (browser === 'firefox')- return FirefoxBrowser.connect;- if (browser === 'webkit')- return WebKitBrowser.connect;- throw new Error(`Unsupported browser "${browser}"`);-}-+const connect = {+ chromium: { connect: ChromiumBrowser.connect },+ firefox: { connect: FirefoxBrowser.connect },+ webkit: { connect: WebKitBrowser.connect },+};export = connect;diff --git a/test/assets/playwrightweb.html b/test/assets/playwrightweb.htmlindex 09b9fdff36..a81814a87c 100644--- a/test/assets/playwrightweb.html+++ b/test/assets/playwrightweb.html@@ -1,8 +1,7 @@<script src='../../web.js'></script><script>async function setup(product, connectOptions) {- window.connect = window.playwrightweb(product);- window.browser = await window.connect(connectOptions);+ window.browser = await window.playwrightweb[product].connect(connectOptions);window.context = await window.browser.newContext();window.page = await window.context.newPage();}diff --git a/test/chromium/browser.spec.js b/test/chromium/browser.spec.jsindex aa08062c9e..b3d41a0a07 100644--- a/test/chromium/browser.spec.js+++ b/test/chromium/browser.spec.js@@ -17,7 +17,7 @@const path = require('path');const {spawn, execSync} = require('child_process');-module.exports.describe = function({testRunner, expect, defaultBrowserOptions, playwright, playwrightPath}) {+module.exports.describe = function({testRunner, expect, defaultBrowserOptions, playwright, playwrightPath, product}) {const {describe, xdescribe, fdescribe} = testRunner;const {it, fit, xit, dit} = testRunner;const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;@@ -40,7 +40,7 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, p// Disable DUMPIO to cleanly read stdout.dumpio: false,});- const res = spawn('node', [path.join(__dirname, '..', 'fixtures', 'closeme.js'), playwrightPath, JSON.stringify(options)]);+ const res = spawn('node', [path.join(__dirname, '..', 'fixtures', 'closeme.js'), playwrightPath, product, JSON.stringify(options)]);let wsEndPointCallback;const wsEndPointPromise = new Promise(x => wsEndPointCallback = x);let output = '';diff --git a/test/firefox/browser.spec.js b/test/firefox/browser.spec.jsindex b970d1492c..4f37deb43b 100644--- a/test/firefox/browser.spec.js+++ b/test/firefox/browser.spec.js@@ -17,7 +17,7 @@const path = require('path');const {spawn, execSync} = require('child_process');-module.exports.describe = function({testRunner, defaultBrowserOptions, playwright, playwrightPath}) {+module.exports.describe = function({testRunner, defaultBrowserOptions, playwright, playwrightPath, product}) {const {describe, xdescribe, fdescribe} = testRunner;const {it, fit, xit, dit} = testRunner;const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;@@ -28,7 +28,7 @@ module.exports.describe = function({testRunner, defaultBrowserOptions, playwrigh// Disable DUMPIO to cleanly read stdout.dumpio: false,});- const res = spawn('node', [path.join(__dirname, '..', 'fixtures', 'closeme.js'), playwrightPath, JSON.stringify(options)]);+ const res = spawn('node', [path.join(__dirname, '..', 'fixtures', 'closeme.js'), playwrightPath, product, JSON.stringify(options)]);let wsEndPointCallback;const wsEndPointPromise = new Promise(x => wsEndPointCallback = x);let output = '';diff --git a/test/fixtures.spec.js b/test/fixtures.spec.jsindex 8c2f4c0f34..4256c08c1b 100644--- a/test/fixtures.spec.js+++ b/test/fixtures.spec.js@@ -18,7 +18,7 @@const path = require('path');const {spawn} = require('child_process');-module.exports.describe = function({testRunner, expect, defaultBrowserOptions, playwright, playwrightPath, FFOX, CHROMIUM, WEBKIT}) {+module.exports.describe = function({testRunner, expect, product, playwrightPath, FFOX, CHROMIUM, WEBKIT}) {const {describe, xdescribe, fdescribe} = testRunner;const {it, fit, xit, dit} = testRunner;const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;@@ -26,14 +26,14 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, pdescribe('Fixtures', function() {it('dumpio option should work with pipe option ', async({server}) => {let dumpioData = '';- const res = spawn('node', [path.join(__dirname, 'fixtures', 'dumpio.js'), playwrightPath, 'use-pipe']);+ const res = spawn('node', [path.join(__dirname, 'fixtures', 'dumpio.js'), playwrightPath, product, 'use-pipe']);res.stderr.on('data', data => dumpioData += data.toString('utf8'));await new Promise(resolve => res.on('close', resolve));expect(dumpioData).toContain('message from dumpio');});it('should dump browser process stderr', async({server}) => {let dumpioData = '';- const res = spawn('node', [path.join(__dirname, 'fixtures', 'dumpio.js'), playwrightPath]);+ const res = spawn('node', [path.join(__dirname, 'fixtures', 'dumpio.js'), playwrightPath, product]);res.stderr.on('data', data => dumpioData += data.toString('utf8'));await new Promise(resolve => res.on('close', resolve));expect(dumpioData).toContain('message from dumpio');diff --git a/test/fixtures/closeme.js b/test/fixtures/closeme.jsindex 90da469a80..85543fa917 100644--- a/test/fixtures/closeme.js+++ b/test/fixtures/closeme.js@@ -1,5 +1,5 @@(async() => {- const [, , playwrightRoot, options] = process.argv;- const browserServer = await require(playwrightRoot).launchServer(JSON.parse(options));+ const [, , playwrightRoot, product, options] = process.argv;+ const browserServer = await require(playwrightRoot)[product.toLowerCase()].launchServer(JSON.parse(options));console.log(browserServer.wsEndpoint());})();diff --git a/test/fixtures/dumpio.js b/test/fixtures/dumpio.jsindex 1ae8547736..0f090aa92d 100644--- a/test/fixtures/dumpio.js+++ b/test/fixtures/dumpio.js@@ -4,7 +4,7 @@console.log('unhandledRejection', error.message);});- const [, , playwrightRoot, usePipe] = process.argv;+ const [, , playwrightRoot, product, usePipe] = process.argv;const options = {pipe: usePipe === 'use-pipe',ignoreDefaultArgs: true,@@ -14,10 +14,10 @@args: ['-e', 'console.error("message from dumpio")', '--']}console.error('using pipe: ' + options.pipe);- if (playwrightRoot.includes('firefox'))+ if (product.toLowerCase() === 'firefox')options.args.push('-juggler', '-profile');try {- await require(playwrightRoot).launchServer(options);+ await require(playwrightRoot)[product.toLowerCase()].launchServer(options);console.error('Browser launch unexpectedly succeeded.');} catch (e) {}diff --git a/test/launcher.spec.js b/test/launcher.spec.jsindex 82f8437cb3..01af97bb9b 100644--- a/test/launcher.spec.js+++ b/test/launcher.spec.js@@ -72,11 +72,11 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, pdescribe('Top-level requires', function() {it('should require top-level Errors', async() => {- const Errors = require(path.join(utils.projectRoot(), '/Errors'));+ const Errors = require(path.join(utils.projectRoot(), '/lib/errors.js'));expect(Errors.TimeoutError).toBe(playwright.errors.TimeoutError);});it('should require top-level DeviceDescriptors', async() => {- const Devices = require(path.join(utils.projectRoot(), '/DeviceDescriptors'));+ const Devices = require(path.join(utils.projectRoot(), '/lib/deviceDescriptors.js')).DeviceDescriptors;expect(Devices['iPhone 6']).toBe(playwright.devices['iPhone 6']);});});diff --git a/test/playwright.spec.js b/test/playwright.spec.jsindex db42e3016b..af013bea11 100644--- a/test/playwright.spec.js+++ b/test/playwright.spec.js@@ -36,7 +36,7 @@ module.exports.describe = ({testRunner, product, playwrightPath}) => {const LINUX = os.platform() === 'linux';const WIN = os.platform() === 'win32';- const playwright = require(playwrightPath);+ const playwright = require(playwrightPath)[product.toLowerCase()];const headless = (process.env.HEADLESS || 'true').trim().toLowerCase() === 'true';const slowMo = parseInt((process.env.SLOW_MO || '0').trim(), 10);diff --git a/test/test.js b/test/test.jsindex 01f36dacd0..b1bf5183df 100644--- a/test/test.js+++ b/test/test.js@@ -81,7 +81,7 @@ if (process.env.BROWSER === 'firefox') {describe('Firefox', () => {testRunner.loadTests(require('./playwright.spec.js'), {product: 'Firefox',- playwrightPath: path.join(utils.projectRoot(), 'firefox.js'),+ playwrightPath: utils.projectRoot(),testRunner,});});@@ -89,7 +89,7 @@ if (process.env.BROWSER === 'firefox') {describe('WebKit', () => {testRunner.loadTests(require('./playwright.spec.js'), {product: 'WebKit',- playwrightPath: path.join(utils.projectRoot(), 'webkit.js'),+ playwrightPath: utils.projectRoot(),testRunner,});});@@ -97,7 +97,7 @@ if (process.env.BROWSER === 'firefox') {describe('Chromium', () => {testRunner.loadTests(require('./playwright.spec.js'), {product: 'Chromium',- playwrightPath: path.join(utils.projectRoot(), 'chromium.js'),+ playwrightPath: utils.projectRoot(),testRunner,});if (process.env.COVERAGE)diff --git a/utils/doclint/cli.js b/utils/doclint/cli.jsindex ac25a4c80f..2a155b27fa 100755--- a/utils/doclint/cli.js+++ b/utils/doclint/cli.js@@ -15,7 +15,7 @@* limitations under the License.*/-const playwright = require('../../chromium');+const playwright = require('../../index.js').chromium;const path = require('path');const Source = require('./Source');diff --git a/web.d.ts b/web.d.tsdeleted file mode 100644index 417be8c272..0000000000--- a/web.d.ts+++ /dev/null@@ -1,20 +0,0 @@-/**- * Copyright (c) Microsoft Corporation.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--function connect(browser: 'chromium'): import('./lib/api').ChromiumBrowser.connect;-function connect(browser: 'firefox'): import('./lib/api').FirefoxBrowser.connect;-function connect(browser: 'webkit'): import('./lib/api').WebKitBrowser.connect;-export = connect;diff --git a/webkit.js b/webkit.jsdeleted file mode 100644index 37b792ffb2..0000000000--- a/webkit.js+++ /dev/null@@ -1,17 +0,0 @@-/**- * Copyright 2017 Google Inc. All rights reserved.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--module.exports = require('./index').playwright('webkit');