How to disable Developer Mode Extension in Selenium?

0 votes
How can I disable Developer Mode Extension in Chrome using Selenium?
Jun 3 in Selenium by Rehman
141 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 3 by Anvi
• 11,930 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 in Selenium by Priyaj
• 56,520 points
588 views
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer

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,070 points
443 views
0 votes
1 answer
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,130 points
791 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
433 views
0 votes
1 answer