4

I'm doing a basic Selenium test program in Java and I notice I'm getting this warning, which is annoying.

 console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))

My code before the driver.get is:

 FirefoxOptions options = new FirefoxOptions();
 options.setProfile(new FirefoxProfile());
 options.setLogLevel(FirefoxDriverLogLevel.FATAL);
 options.setAcceptInsecureCerts(true);
 options.setHeadless(true);
 WebDriver driver = new FirefoxDriver(options);

What do I need to do to get rid of this warning? The older versions of Selenium never did this.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Sulteric
  • 505
  • 6
  • 16

1 Answers1

2

This error message...

console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))

...implies that the WebDriver instance was unable to initiate/spawn a new Browsing Context.

The most probable reason is there is/are dangling/zombie GeckoDriver instances clinging on with the scoped_dir*s. As a result no new scoped_dir can be created.


Solution

You need to invoke driver.quit() within tearDown(){} method to close & destroy the WebDriver and Web Client instances gracefully at the end of each execution. Incase the dangling/zombie GeckoDriver process still continues to occupy your system memory you need to forcefully kill them.


References

You can find a relevant detailed discussions in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352