-
Notifications
You must be signed in to change notification settings - Fork 678
Expand file tree
/
Copy pathindex.ts
More file actions
31 lines (29 loc) · 1.36 KB
/
index.ts
File metadata and controls
31 lines (29 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
/**
* Run a Playwright browser server in one environment and drive it from another environment by
* forwarding Playwright's WebSocket traffic through a tunnel.
*
* @remarks
* This package is intended for remote development and CI scenarios (for example: Codespaces,
* devcontainers, or a separate "browser host" machine) where you want tests to run in one
* environment but the actual browser process to run in another.
*
* The package provides two main APIs:
* - {@link PlaywrightTunnel} - Run on the browser host to launch the real browser server and forward messages
* - {@link tunneledBrowserConnection} - Run on the test runner to create a local endpoint that your Playwright client can connect to
*
* @packageDocumentation
*/
export { PlaywrightTunnel } from './PlaywrightBrowserTunnel';
export type { BrowserName, TunnelStatus, IPlaywrightTunnelOptions } from './PlaywrightBrowserTunnel';
export { tunneledBrowser, tunneledBrowserConnection } from './tunneledBrowserConnection';
export type {
IDisposableTunneledBrowserConnection,
IDisposableTunneledBrowser
} from './tunneledBrowserConnection';
export {
isExtensionInstalledAsync,
EXTENSION_INSTALLED_FILENAME,
getNormalizedErrorString
} from './utilities';