chrome-php / chrome

Instrument headless chrome/chromium instances from PHP
MIT License
2.25k stars 274 forks source link

how to disable "Chrome is being controlled by automated test software" notification?[Resolved] #475

Closed quyunet closed 1 year ago

quyunet commented 1 year ago

Recent versions of Chrome display notification bar at the top of the browser saying "Chrome is being controlled by automated test software", How do I disable or not turn off this option?

Please refer to other scripts for solutions: https://help.applitools.com/hc/en-us/articles/360007189411--Chrome-is-being-controlled-by-automated-test-software-notification

quyunet commented 1 year ago

the solution has been found, but the source code file of the library needs to be modified. edit the file: /src/Browser/BrowserProcess.php

comment the following line: --enable-automation

reference document: https://peter.sh/experiments/chromium-command-line-switches/#enable-automation