Disable notification Chrome is being controlled by automated test software in ChromeDriver 2 36

+1 vote

After updating ChromeDriver to newest version - 2.36. In previous versions I've set:

    ChromeOptions options = new ChromeOptions();
    options.addArguments("disable-infobars");

and "Chrome is being controlled by automated test software" warning bar wasn't visible. Inspite of setting it, I keep seeing it in this version. How do I disable this from appearing in the newest ChromeDriver? Thanks in advance

Mar 26, 2018 in Selenium by nitinrawat895
• 11,380 points
17,351 views

1 answer to this question.

+4 votes
Best answer

"disable-infobars" flag has been deprecated, but you can avoid this message by adding the following:

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

This work for me and I hope works for you too.

answered Mar 26, 2018 by nsv999
• 5,500 points

selected Dec 12, 2019 by Kalgi
Thanks, it worked for me. I have Upvoted your answer too.
Hi,

This worked for me.

Thanks  a lot!
Thanks,

It is working for me !
Thanks bro its working, i did it on later version of chrome 79 with stable version of selenium 3.141.59
Hello! I hope you are doing good. Register at Edureka community and earn credits for any kind of contribution(answering, commenting, asking a question or even upvoting the questions and answers).

Also, if the thread has helped you, please do upvote it.
thanks it worked.
Hello @Shankar lal Jeengar! I hope you are doing good.

Please do upvote the answer if it helped you. You get credits for any kind of contribution you make. Contributions could be anything from asking a question to answering a question or even upvoting/downvoting an answer.
In Python this would be (I know this is Java question, but I found this website looking for python solution)
# Set Options
chrome_options = webdriver.ChromeOptions()
chrome_options.add_experimental_option("useAutomationExtension", False)
chrome_options.add_experimental_option("excludeSwitches",["enable-automation"])
browser = webdriver.Chrome(chrome_options=chrome_options)
Yeah! That worked. Thanks
Hi @python.

can you please write this python solution as an answer so that it's easier for readers to understand the flow.

Also please mention that it's the python solution.

Thanks for your contribution.
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("useAutomationExtension", false);
options.setExperimentalOption("excludeSwitches",Collections.singletonList("enable-automation"));    
WebDriver driver = new ChromeDriver(options);

Hi Guys,

I'm don't have background in python but I need help how to convert the code above into robot framework? Since I got encounter also the infobars when I use the script of robot framework.

Hey, What exactly is your query? Do you want to know how to disable the notification in the chrome driver using a robot framework? Is that what you are asking?
Hi,

what is similar to C# language bindings

Thanks

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

Selenium grid 2 in chrome browser

The problem is in -Dwebdriver arguments. Maybe you should do ...READ MORE

answered Apr 27, 2018 in Selenium by Samarpit
• 5,910 points
1,276 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,793 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,198 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,281 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,910 views
+1 vote
2 answers

Python with Selenium issue: “Chrome is being controlled by automated test software”

from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option("useAutomationExtension", False) chrome_options.add_experimental_option("excludeSwitches",["enable-automation"]) driver ...READ MORE

answered Apr 20, 2020 in Selenium by Manoj
16,047 views
0 votes
2 answers

Can anyone help me that how to run Selenium WebDriver test cases in Chrome?

You first need to download chrome driver ...READ MORE

answered Aug 26, 2019 in Selenium by Abha
• 28,140 points
2,020 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP