You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"));