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?
The best you can do is use GetAttribute and access it's innerHTML.
element.GetAttribute("innerHTML");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With