I want to extract some information from the DOM with Selenium. I\'m using the C# WebDriver.
Looking at the IWebElement interface you can easily extract a given attri
You can try this:
IWebElement element = driver.FindElement(By.Id("myButton")); string elementHtml = element.GetAttribute("outerHTML");
This will give you the html of the element. From here, you can parse it, as Arran suggested