Class PhantomJSDriverService
Exposes the service provided by the native PhantomJS executable and GhostDriver JavaScript library.
public sealed class PhantomJSDriverService : DriverService, IDisposable
- Inheritance
-
PhantomJSDriverService
- Implements
- Inherited Members
Properties
CommandLineArguments
Gets the command-line arguments for the driver service.
protected override string CommandLineArguments { get; }
Property Value
Methods
CreateDefaultService()
Creates a default instance of the PhantomJSDriverService.
public static PhantomJSDriverService CreateDefaultService()
Returns
- PhantomJSDriverService
A PhantomJSDriverService that implements default settings.
CreateDefaultService(string)
Creates a default instance of the PhantomJSDriverService using a specified path to the PhantomJS executable.
public static PhantomJSDriverService CreateDefaultService(string driverPath)
Parameters
driverPath
stringThe directory containing the PhantomJS executable.
Returns
- PhantomJSDriverService
A PhantomJSDriverService using a random port.