Skip to content
Yngve Bakken Nilsen edited this page Sep 5, 2013 · 4 revisions

Install the Nuget-package, and add the namespace Selenium.Webdriver.Domify to your usings. You'll now get the .Document() extension on your IWebDriver implementation.

Example:

IWebDriver driver = new ChromeDriver("/path/to/Chromedriver.exe");
IList<Button> allButtonsOnPage = driver.Document().Find<Button>();
Form loginForm = driver.Document().Form(By.Id("login-form"));

Clone this wiki locally