Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove "chrome is being controlled by automated test software" selenium javascript

Is there anyway to remove the "chrome is being controlled by automated test software" notification in selenium JavaScript. Already tried disable info-bar but turns out chrome patched that couple years back.

like image 492
sarem dave Avatar asked Oct 28 '25 15:10

sarem dave


2 Answers

var options = new chrome.Options();

options.excludeSwitches('enable-automation')

use chrome options.excludeSwitches, this will remove the automation flag that causing that notification

like image 109
PDHide Avatar answered Oct 31 '25 07:10

PDHide


For C# :

var options = new ChromeOptions();
options.AddExcludedArgument("enable-automation");
like image 33
NewTom Avatar answered Oct 31 '25 07:10

NewTom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!