selenium RC 报Caught an exception attempting to log location; 错误
是不是会有了运行RC的时候报10:06:11.578 ERROR- Caught an exception attempting to log location; this should get noticed soon!
10:06:11.578 ERROR- Unexpected Exception: 没有权限
10:06:11.578 ERROR- Exception details: name -> Error, number -> -2146828218, description -> 没有权限, message -> 没有权限
的错误
那就看你的启动里是否
下面是我的启动函数public void open()
{
try {
rcConf.setPort(getSeleniumPort());
rcConf.setReuseBrowserSessions(true);
//就在这里只要这个set为true的时候这个报错就会出现了
rcConf.setBrowserSideLogEnabled(false);
rcConf.setFirefoxProfileTemplate(new File(""));
rcConf.setSingleWindow(true);
rcConf.setTrustAllSSLCertificates(true);
rcConf.setDebugMode(false);
seleniumServer = new SeleniumServer(rcConf);
seleniumServer.start();
Start_browser(getUrlpath(),getBrowserType());
} catch (Exception e)
{
SlClose();
this.logger.error(e.toString());
}
} 估计是你启动Selenium server的时候没有带 “-browserSideLog” 参数java -jar selenium-server.jar -browserSideLog
页:
[1]