is there a tutorial / sample for using selenium 2.0 web driver with .net?
I tried searching, but could only find java, nothing about the .net web driver and selenium 2.0
The docs have an example in C #: http://seleniumhq.org/docs/03_webdriver.html
using OpenQA.Selenium.Firefox; using OpenQA.Selenium; class GoogleSuggest { static void Main(string[] args) { IWebDriver driver = new FirefoxDriver(); //Notice navigation is slightly different than the Java version //This is because 'get' is a keyword in C# driver.Navigate().GoToUrl("http://www.google.com/"); IWebElement query = driver.FindElement(By.Name("q")); query.SendKeys("Cheese"); System.Console.WriteLine("Page title is: " + driver.Title); driver.Quit(); } }
Download the latest package : http://selenium-release.storage.googleapis.com/index.html
Try it here: http://selenium.googlecode.com/svn/trunk/docs/api/dotnet/index.html
The archive also has documentation with .net bindings: http://code.google.com/p/selenium/downloads/detail?name=selenium-dotnet-2.31.2.zip&can=2&q=label%3AFeatured
Hope this helps you