As JimEvans mentions above, this feature was added in 2.40:
https://code.google.com/p/selenium/source/detail?r=bd0e4ef7504cd6a7f184b19b2aa95b56f8958ab5
I’m not exactly sure how to properly use PhantomJSDriverService
, but the following works:
var driverService = PhantomJSDriverService.CreateDefaultService();
driverService.HideCommandPromptWindow = true;
var driver = new PhantomJSDriver(driverService);