Creates a default instance of the PhantomJSDriverService using a specified path to the PhantomJS executable.
Namespace: OpenQA.Selenium.PhantomJSAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public static PhantomJSDriverService CreateDefaultService( string driverPath )
Parameters
- driverPath
- Type:
System String
The directory containing the PhantomJS executable.
Return Value
A PhantomJSDriverService using a random port.See Also