How to Disable Chrome Developer Mode Extension in Selenium Program?

How to Disable Chrome Developer Mode Extension in the Selenium Program?

package com.selenium.handleVariousBrowsers;
import org.openqa.selenium.WebDriver;
public class DisableDevModeExtenChrome 
   public static void main(String[] args) 
      //Set the chrome path
      System.setProperty("", "C:\\chromedriver.exe");
      // Create object of ChromeOptions class
      ChromeOptions options = new ChromeOptions();
      // add parameter which will disable the extension
      // Start the chrome session
      WebDriver driver = new ChromeDriver(options);

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to, or You can join me on Linkedin.

Leave a Comment