usingOpenQA.Selenium.Firefox;usingOpenQA.Selenium;classGoogleSuggest{staticvoidMain(string[] args){IWebDriver driver =newFirefoxDriver();//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();}}
Les docs a ici un exemple en C#:
http://seleniumhq.org/docs/03_webdriver.html
OriginalL'auteur Mike Kwan
Télécharger dernier package: http://selenium-release.storage.googleapis.com/index.html
Essayer ici: http://selenium.googlecode.com/svn/trunk/docs/api/dotnet/index.html
Il y a aussi de la documentation dans les archives .net liaisons ici: http://code.google.com/p/selenium/downloads/detail?name=selenium-dotnet-2.31.2.zip&can=2&q=label%3AFeatured
Espère que cela vous aide
OriginalL'auteur user1922804