How to disable Developer Mode Extension in Selenium

0 votes
How can I disable Developer Mode Extension in Chrome using Selenium?
Jun 3, 2019 in Selenium by Rehman
5,644 views

1 answer to this question.

0 votes

Hello Rehman, you can disable Developer Mode Extension in Chrome by using ChromeOptions. Use following lines of code to disable it:

//Set the chrome path
System.setProperty("webdriver.chrome.driver", "C:\\Users\\Anvi_R\\Downloads\\ChromeDriver\\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);
answered Jun 4, 2019 by Anvi
• 14,150 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

How to handle IE protected mode zone and zoom level setting in selenium C#

For changing the zoom level you can ...READ MORE

answered Feb 13, 2019 in Selenium by Priyaj
• 58,020 points
4,440 views
0 votes
0 answers

How to configure ChromeDriver to initiate the browser in the Headless mode using Selenium?

I'm currently working on a Python script ...READ MORE

Apr 2, 2019 in Selenium by Surya
• 970 points
1,783 views
0 votes
1 answer
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,676 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,144 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,221 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,875 views
0 votes
1 answer

How to open Firefox window in Incognito mode using Selenium Webdriver?

Hi Pritha, you can use this code ...READ MORE

answered May 14, 2019 in Selenium by Anvi
• 14,150 points
7,101 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