Table of Contents

Class PhantomJSDriverService

Namespace
OpenQA.Selenium.PhantomJS
Assembly
WebDriver.dll

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

string

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 string

The directory containing the PhantomJS executable.

Returns

PhantomJSDriverService

A PhantomJSDriverService using a random port.