However, it seems that the chrome settings are loaded when the test case is run and it cannot be changed.
The prefs are not set when the chromedriver is started by WebUI. However, if I run the test case again, prefs will be set because the prefs are set in the settings file.