make patchright work in docker
This commit is contained in:
parent
6ce17f667e
commit
34b24f3eb7
3 changed files with 32 additions and 47 deletions
|
|
@ -31,7 +31,8 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, {
|
|||
args: [
|
||||
'--hide-crash-restore-bubble',
|
||||
],
|
||||
chromiumSandbox: true, // https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/52
|
||||
// The following makes the browser crash in docker with 'Chromium sandboxing failed!':
|
||||
// chromiumSandbox: true, // https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/52
|
||||
});
|
||||
|
||||
// console.log(context.browser().browserType()); // browser is null...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue