Change browserType back to sync
This commit is contained in:
@@ -41,7 +41,7 @@ export async function openTerminal(page: playwright.Page, options: ITerminalOpti
|
||||
}
|
||||
}
|
||||
|
||||
export async function getBrowserType(): Promise<playwright.BrowserType> {
|
||||
export function getBrowserType(): playwright.BrowserType {
|
||||
// Default to chromium
|
||||
let browserType: playwright.BrowserType = playwright['chromium'];
|
||||
|
||||
@@ -53,7 +53,5 @@ export async function getBrowserType(): Promise<playwright.BrowserType> {
|
||||
}
|
||||
}
|
||||
|
||||
await browserType.downloadBrowserIfNeeded();
|
||||
|
||||
return browserType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user