Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable userDataDir and userCrashDumpsDir ? #621

Open
phpmooc opened this issue Apr 24, 2024 · 2 comments
Open

How to disable userDataDir and userCrashDumpsDir ? #621

phpmooc opened this issue Apr 24, 2024 · 2 comments

Comments

@phpmooc
Copy link

phpmooc commented Apr 24, 2024

Is it possible to disable user data dir and user crash dir ?
if so, how to configure? I tried the the config options both userDataDir and userCrashDumpsDir, and then checked out the repo codes, it seems not work.

@qzw881130
Copy link

i'm not sure. but you can give it a shot.

you can use "excludedSwitches" paramater.

my code:

            'excludedSwitches' => ['--enable-crash-reporter'],
        $options = [
            'keepAlive' => true,
            'headless' => true,
            'startupTimeout' => 35,
            'connectionDelay' => 0.8,
            'sendSyncDefaultTimeout' => self::TimeOut,
            //  'debugLogger'     => 'php://stdout',
            'enableImages' => $enableImages,
            'excludedSwitches' => ['--enable-crash-reporter'],
            'customFlags' => ['--eshop_id=' . $this->eshop->id, '--chrome-coupon', '--disable-crash-reporter']
        ];

@phpmooc
Copy link
Author

phpmooc commented Oct 31, 2024

sorry for the late reply and thanks a lot, it seems not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants