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
22 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 8,520 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,140 points
330 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,050 points
160 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
547 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
146 views
0 votes
1 answer
0 votes
1 answer

How to click on Image in Selenium Webdriver?

Hello Lalit, I guess you mean to ...READ MORE

answered May 9 in Selenium by Anvi
• 8,520 points
54 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.