我在使用selenium网络驱动程序时试图关闭eclipse中的记录器。
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("webdriver.log.driver", "ERROR");
WebDriver driver = new FirefoxDriver(profile);
在运行程序时,我仍然收到这些调试日志:
[DEBUG] 2015-04-10 12:10:39,904
CookieSpec selected: best-match
[DEBUG] 2015-04-10 12:10:39,922
Auth cache not set in the context
[DEBUG] 2015-04-10 12:10:39,925
Connection request: [route: {}->http://127.0.0.1:7056][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
[DEBUG] 2015-04-10 12:10:39,960
Connection leased: [id: 0][route: {}->http://127.0.0.1:7056][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
[DEBUG] 2015-04-10 12:10:39,969
Opening connection {}->http://127.0.0.1:7056
有什么方法可以关掉它们吗?