This commit is contained in:
@@ -40,7 +40,12 @@ async function findChromiumExecutable() {
|
||||
const chromiumDir = entries.find((entry) => /^chromium-\d+$/.test(entry));
|
||||
if (!chromiumDir) return undefined;
|
||||
|
||||
return path.join(process.env.PLAYWRIGHT_BROWSERS_PATH, chromiumDir, "chrome-linux", "chrome");
|
||||
for (const directory of ["chrome-linux64", "chrome-linux"]) {
|
||||
const executablePath = path.join(process.env.PLAYWRIGHT_BROWSERS_PATH, chromiumDir, directory, "chrome");
|
||||
if (await fs.access(executablePath).then(() => true, () => false)) return executablePath;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
async function snapshot(page) {
|
||||
|
||||
Reference in New Issue
Block a user