1
Firefox 46 + Selenium 2.53에서 성공적으로 실행되는 Windows 서비스가 있습니다. Firefox 57 + Selenium 3.8로 버전을 업데이트하는 중입니다. 로컬 호스트 디버그에 독립형 노력하지만 Windows 서비스로 실행할 때이 오류가 얻을 :C# Selenium 3.8 + Firefox 57이 Windows 서비스로 실행됩니다.
Process unexpectedly closed with status: 0
내 코드입니다
try
{
FirefoxProfile profile = new FirefoxProfile();
profile.SetPreference("dom.ipc.plugins.enabled", false);
profile.SetPreference("webdriver.gecko.driver", "C:\\Services\\RoboLEDBBService\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.Profile = profile;
driver = new FirefoxDriver(options);
}
catch (Exception error)
{ }