Hii Everyone, In this Post I am going to explain You How to Remove the Info Message “Chrome is being Controlled by automated test software” in Python Selenium. So, read till the end and don’t forget to share the post with your friends. So, let’s get started.

What is this Message?

This messages shows that the window which is running is a selenium driven chrome window not a normal user window. It is enabled by Default, so that user can see it is selenium driven window. But there is a way to disable this Info Message and I am going to explain the way.

How to Disable it?

This info message is so easy to disable, you just have to add a little amount of code to disable the info message. Let’s look what is the code.

from selenium import webdriver # Importing webdriver from the selenium package

options = webdriver.ChromeOptions() # Initializing Chrome Options from the Webdriver
options.add_experimental_option("useAutomationExtension", False) # Adding Argument to Not Use Automation Extension
options.add_experimental_option("excludeSwitches",["enable-automation"]) # Excluding enable-automation Switch

driver = webdriver.Chrome(options=options) # Initialzing Chromedriver and giving argument options which is initialized and modified before

Here is the full Commented Code to Disable The Infobars. Hope this post helped you in disabling the info message. Thanks For Reading 🙂

Categorized in:

Python, Tutorials,