Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

I've been researching this extensively, but I have yet to even find a single topic about this specific question. I use python to access Selenium Webdriver and have been disabling the extensions through python using the code

chrome_options.add_argument("--disable-extensions")

Recently, though, I've wanted to load a custom profile, and that means custom extensions. Is there a way to get rid of ONLY the automation extension?

enter image description here

ALSO, as a follow-up curiosity, what even makes the chrome browser automatically start out with this extension loaded?

Thanks!

1 Answer

0 votes
by (62.9k points)

You can disable the Chrome Automation Extension by adding an experimental option to ChromeOptions like so:

ChromeOptions options = new ChromeOptions

();

options.setExperimentalOption("useAutomationExtension", false);

Browse Categories

...