I have attempted this in a few ways but never have a test after I hit build I have written a test using Nunit and am not sure what I need to do.
using OpenQA.Selenium;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Support.UI;
using System;
using NUnit.Framework;
using OpenQA.Selenium.PhantomJS;
namespace sampletest {
[TestFixture()]
public class phantom {
[Test()]
public void TestCase() {
IWebDriver wd = new RemoteWebDriver(DesiredCapabilities.PhantomJS());
try {
wd.Navigate().GoToUrl("https://www.google.com/");
wd.FindElement(By.Id("lst-ib")).Click();
wd.FindElement(By.Id("lst-ib")).Clear();
wd.FindElement(By.Id("lst-ib")).SendKeys("blah");
wd.FindElement(By.Id("lst-ib")).Click();
wd.FindElement(By.LinkText("linkedtext")).Click();
Assert.AreEqual(wd.Title, "PageTitle");
} finally { wd.Quit(); }
}
}
}