"Chrome is being controlled by automated test software"

5,041 views
Skip to first unread message

Jesse Beebout

unread,
Aug 15, 2019, 11:06:25 PM8/15/19
to Selenium Users

"Chrome is being controlled by automated test software"

this bar at the top of the chrome webdriver breaks a lot of folks tests looking around online. It also breaks some of my tests and i cannot find a way to disable it through the registry which would be best for my application as changing group policy settings is not the best option.  if it is the only one can someone describe the process to me as the instructions i find don't seem to work.  we need to use chrome unfortunately as we have an application that does a ton of things with chrome, we just use selenium to click a few buttons that are hard to find on the screen through other methods.  Thank you for your time, any suggestion is golden.

Mahsum Akbaş

unread,
Aug 16, 2019, 11:02:00 AM8/16/19
to seleniu...@googlegroups.com
How "breaks" the tests? normally, it doesn't affect viewport.
What is exactly the problem?

On Fri, Aug 16, 2019 at 6:06 AM 'Jesse Beebout' via Selenium Users <seleniu...@googlegroups.com> wrote:

"Chrome is being controlled by automated test software"

this bar at the top of the chrome webdriver breaks a lot of folks tests looking around online. It also breaks some of my tests and i cannot find a way to disable it through the registry which would be best for my application as changing group policy settings is not the best option.  if it is the only one can someone describe the process to me as the instructions i find don't seem to work.  we need to use chrome unfortunately as we have an application that does a ton of things with chrome, we just use selenium to click a few buttons that are hard to find on the screen through other methods.  Thank you for your time, any suggestion is golden.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a39d6997-060c-4d5e-a162-58d90904f912%40googlegroups.com.


--

Mahsum Akbaş
www.mahsumakbas.net

Amit Jain

unread,
Aug 16, 2019, 11:19:40 AM8/16/19
to seleniu...@googlegroups.com
You can disable this bar using chrome option 

ChromeOptions options = new ChromeOptions();

options.addArguments("disable-infobars");



On Fri, 16 Aug 2019 at 8:36 AM, 'Jesse Beebout' via Selenium Users <seleniu...@googlegroups.com> wrote:

"Chrome is being controlled by automated test software"

this bar at the top of the chrome webdriver breaks a lot of folks tests looking around online. It also breaks some of my tests and i cannot find a way to disable it through the registry which would be best for my application as changing group policy settings is not the best option.  if it is the only one can someone describe the process to me as the instructions i find don't seem to work.  we need to use chrome unfortunately as we have an application that does a ton of things with chrome, we just use selenium to click a few buttons that are hard to find on the screen through other methods.  Thank you for your time, any suggestion is golden.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a39d6997-060c-4d5e-a162-58d90904f912%40googlegroups.com.
--
Thanks and Regards

Amit Jain | Software Engineer, 2x Salesforce Certified :Consulting,Development

metacubeSP6, Phase IV, EPIP, Sitapura Industrial Area, Sitapura| Jaipur, RJ -302022

   

Chámam Caires

unread,
Aug 16, 2019, 11:19:41 AM8/16/19
to Selenium Users
Hello

You can change browser options, this "disable-infobars" option is no longer supported, so you can change to the items below:

ChromeOptions options = new ChromeOptions ();
options.setExperimentalOption ("excludeSwitches", Collections.singletonList ("enable-automation"));
options.setExperimentalOption ("useAutomationExtension", false);

Hope this helps

Jesse Beebout

unread,
Aug 19, 2019, 10:28:09 AM8/19/19
to Selenium Users
Thank you so much!, to help out anyone who runs into this is the future, here is a code example to do this in Python

options = webdriver.ChromeOptions()
options.add_experimental_option("useAutomationExtension", False)
options.add_experimental_option("excludeSwitches", ['enable-automation'])

Yogi Wiputra

unread,
May 20, 2020, 12:54:35 AM5/20/20
to Selenium Users
Fast forward 9 months, and 'setExperimentalOption' is no longer a function in ChromeOptions...
Reply all
Reply to author
Forward
0 new messages