PhantomJSDriverService CreateDefaultService Method (String)WebDriver
Creates a default instance of the PhantomJSDriverService using a specified path to the PhantomJS executable.

Namespace: OpenQA.Selenium.PhantomJS
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public static PhantomJSDriverService CreateDefaultService(
	string driverPath
)

Parameters

driverPath
Type: OnlineSystem String
The directory containing the PhantomJS executable.

Return Value

A PhantomJSDriverService using a random port.
See Also