Step1:Create Unit Test Project With VS:
Step2:Add WebDriver Referene:
![](https://images2015.cnblogs.com/blog/466287/201701/466287-20170118142453453-1665555649.png)
Step3:Initial FireFoxWebDriver
![](https://images2015.cnblogs.com/blog/466287/201701/466287-20170118143251359-846400330.png)
Step4:Simulator Search "Selenium in .net" in BaiDu
driver.Navigate().GoToUrl("http://baidu.com");
driver.FindElement(By.Id("wd")).SendKeys("Selenium in .Net");
driver.FindElement(By.Id("su")).Click();
driver.FindElement(By.Id("wd")).SendKeys("Selenium in .Net");
driver.FindElement(By.Id("su")).Click();
Step5:Add geckodriver.exe to directory which app run, and firefox.exe path to Enivironment Path
![](https://images2015.cnblogs.com/blog/466287/201701/466287-20170118145139250-914667978.png)
Step6: Run Unit Test:OK
It's can also use Chrome or Internet Explorer, and the SimpleBrowser seems can test fast and in memory.
https://github.com/SimpleBrowserDotNet/SimpleBrowser.WebDriver
![](https://images2015.cnblogs.com/blog/466287/201701/466287-20170118171551609-1662972190.png)