Use Playwright Firefox runtime
This commit is contained in:
@@ -63,10 +63,9 @@ function launchBrowser(engine, headless) {
|
|||||||
|
|
||||||
function resolveSystemBrowser(engine) {
|
function resolveSystemBrowser(engine) {
|
||||||
if (process.platform !== "win32") return "";
|
if (process.platform !== "win32") return "";
|
||||||
|
if (engine === "firefox") return "";
|
||||||
|
|
||||||
const candidates = engine === "firefox"
|
const candidates = [
|
||||||
? ["C:\\Program Files\\Mozilla Firefox\\firefox.exe", "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"]
|
|
||||||
: [
|
|
||||||
"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
|
"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
|
||||||
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
|
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
|
||||||
"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
|
"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
|
||||||
|
|||||||
Reference in New Issue
Block a user