• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / Basic Selenium / How to remove Disable Developer Mode Extension in Selenium

How to remove Disable Developer Mode Extension in Selenium

October 7, 2016 by Mukesh Otwani 17 Comments

Firefox browser on mac using Selenium webdriver

While working with Selenium Webdriver using Chrome browser you might get one additional popup. You can Disable Developer Mode Extension in Chrome using some additional code.

Before moving into this post  you should be familiar with Chrome with Selenium Webdriver.

Disable Developer Mode Extension in Chrome

Code snippet

//Set the chrome path
System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");

// Create object of ChromeOptions class
ChromeOptions options = new ChromeOptions();

// add parameter which will disable the extension
options.addArguments("--disable-extensions");

// Start the chrome session
WebDriver driver = new ChromeDriver(options);

 

This in one of the smallest post because it solves only specific post. You can embed this code in your BaseClass or in Browser Factory which starts the test.

 

 

Filed Under: Basic Selenium Tagged With: How to remove Disable Developer Mode Extension in Selenium

Reader Interactions

Comments

  1. Guy says

    November 24, 2021 at 4:23 PM

    How can this be done in Firefox and IE as well?

    Reply
    • Mukesh Otwani says

      November 24, 2021 at 11:04 PM

      Hi Guy,

      You can use FirefoxOptions for same but for IE, it won’t work because there is no such development for IE from concerned vendor

      Reply
  2. Rajasekaran says

    May 21, 2020 at 1:57 AM

    HI Mukesh,

    The Disable Developer Mode Extension still i get the pop up after adding the code.
    options.addArguments(“–disable-extensions”);

    Reply
    • Mukesh Otwani says

      May 25, 2020 at 12:01 PM

      Hi Rajasekaran,

      Use options.addArguments(“–disable-notifications”);

      Reply
  3. Manoji says

    February 6, 2017 at 4:57 PM

    Hi Mukesh,

    After adding this code snnipet its working fine but in the url i am getting just data; not getting the url

    Reply
    • Manoji says

      February 6, 2017 at 5:07 PM

      hi mukesh….i got the solution,as soon as i changed the chromedriver version to 2.25 its working gud

      Reply
      • Mukesh Otwani says

        February 6, 2017 at 7:03 PM

        Hi Manoji,

        Good to see your reply.

        Reply
  4. Shylaja R says

    January 18, 2017 at 7:37 AM

    Yes Mukesh. When the chrome open same popup is coming. i went to extensions. It is showing only one extension that “Chrome Automation Extension 1
    Exposes extension APIs for automating Chrome”

    Reply
    • Mukesh Otwani says

      January 19, 2017 at 12:07 PM

      Hi Shylaja,

      Did you add the same chromeOptions in you script before calling chrome browser? Also check the version of chromedriver you are using. Upgrade it to atleast 2.26.

      Reply
  5. Sri Datta says

    December 16, 2016 at 11:21 AM

    Thanks Mukesh Bhai. It worked

    Reply
    • Mukesh Otwani says

      December 17, 2016 at 11:58 AM

      Cheers

      Reply
  6. mallikarjuna says

    November 18, 2016 at 9:55 PM

    super brother

    Reply
    • Mukesh Otwani says

      November 23, 2016 at 3:23 PM

      Thanks Mallikarjuna 🙂

      Reply
  7. Nawaz says

    November 1, 2016 at 4:07 PM

    Hi Mukesh, i get the below error while running chrome with Selenium3.0, however its working fine with Firefox.. please help

    Thanks in advance.

    Reply
    • Mukesh Otwani says

      November 6, 2016 at 10:12 AM

      Hi Nawaz,

      Kindly use Chrome driver 2.25 https://chromedriver.storage.googleapis.com/index.html

      Reply
  8. Rakesh says

    October 23, 2016 at 1:43 PM

    I was getting same Extention while working with chrome browser copy pasted above given code but still getting same extention.

    Reply
    • Mukesh Otwani says

      October 25, 2016 at 2:05 PM

      Strange its working code in my machine.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Best and easy way to Group test cases in selenium

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?