I\'m using Selenium with C#. I have code which returns me a script tag as an IWebElement. How do I get the content from it?
IWebElement
The best you can do is use GetAttribute and access it's innerHTML.
GetAttribute
innerHTML
element.GetAttribute("innerHTML");