Provides a way to access PhantomJS to run your tests by creating a PhantomJSDriver instance
Inheritance Hierarchy

OpenQA.Selenium.Remote RemoteWebDriver
OpenQA.Selenium.PhantomJS PhantomJSDriver
Namespace: OpenQA.Selenium.PhantomJS
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public class PhantomJSDriver : RemoteWebDriver, ITakesScreenshot
Remarks
Examples
[TestFixture] public class Testing { private IWebDriver driver; <para></para> [SetUp] public void SetUp() { driver = new PhantomJSDriver(); } <para></para> [Test] public void TestGoogle() { driver.Navigate().GoToUrl("http://www.google.co.uk"); /* * Rest of the test */ } <para></para> [TearDown] public void TearDown() { driver.Quit(); driver.Dispose(); } }
See Also