mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
fix(install): generate new protocol.d.ts when browsers are downloaded (#149)
This commit is contained in:
parent
d4f0084f67
commit
4478c653fd
@ -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].
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user