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
fix(install): generate new protocol.d.ts when browsers are downloaded (#149)
Joel Einbinder4478c653fd7f
diff --git a/docs/api.md b/docs/api.mdindex 4d3e5c40d6..afe0318acd 100644--- a/docs/api.md+++ b/docs/api.md@@ -446,8 +446,6 @@ const iPhone = playwright.devices['iPhone 6'];Downloads the default browser that Playwright controls. The browser is usually around 100mb.-> **NOTE** Depending on your terminal, the progress bar might not appear.-#### playwright.errors- returns: <[Object]>- `TimeoutError` <[function]> A class of [TimeoutError].diff --git a/src/download.ts b/src/download.tsindex cfb8e10bb7..a1a44d0d80 100644--- a/src/download.ts+++ b/src/download.ts@@ -8,7 +8,9 @@ export async function download(revision: string,browserName: string,{onProgress}: {onProgress?: (downloadedBytes: number, totalBytes: number) => void} = {}) : Promise<RevisionInfo> {- return await browserFetcher.download(revision, onProgress);+ const revisionInfo = browserFetcher.revisionInfo(revision);+ await browserFetcher.download(revision, onProgress);+ return revisionInfo;}export type RevisionInfo = {