ヘッドレス環境 (Xvfb) で SE2 と firefoxDriver を使用してテストを実行しています。FirefoxDriver を使用すると、DISPLAY 環境プロパティを非常に簡単に設定できます。
FirefoxBinary firefox = new FirefoxBinary();
firefox.setEnvironmentProperty("DISPLAY",":"+DISPLAY);
FirefoxProfile firefoxProfile = new ProfilesIni().getProfile(Config.webDriverFirefoxProfile);
this.webDriver = new FirefoxDriver(firefox,firefoxProfile);
ChromeDriverで上記を行うにはどうすればよいですか?
更新: これはまだ実行できないようです! 状況を説明する私のものと同様の質問があります: ChromeDriver Headless