Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Quality Assurance

Daniel Riches
Daniel Riches
19,847 Points

Disable developer mode extensions popup is preventing my test from running

My test ran perfectly one week and then the next week, I ran it again and the test get's stopped as soon as Chrome is opened. A popup opens saying, "Disable developer mode extensions". The popup also says, "Extensions running in developer mode can harm your computer. If you're not a developer, you should disable these extensions running in developer mode to stay safe."

There is also a note pointing to the "i" in the circle in the url field. It says, "You are using an unsupported command-line flag: --ignore-certificate-errors. Stability and security will suffer".

My chromedriver version is v2.9.248315 -- maybe I need to uninstall it and install a newer version?

Stack Exchange Overflow has this as the solution, but it's in Java:

Use following code snippet

ChromeOptions options = new ChromeOptions(); options.addArguments("chrome.switches","--disable-extensions"); System.setProperty("webdriver.chrome.driver",(System.getProperty("user.dir") + "//src//test//resources//chromedriver_new.exe")); driver = new ChromeDriver(options);

I'd like to implement this with JavaScript

I found this on npmjs.com not sure exactly how to implement this within the test

var chromedriver = require('chromedriver');

args = [ // optional arguments ]; chromedriver.start(args); // run your tests chromedriver.stop();

I tried and failed, but I'll try again... any help is greatly appreciated.....