How to Get the content of html tag in c# -
i want content in "p" tag html document
<div id=123> <div class="abc"> <div class="xyz"> <p> contents </p>
i use
dynamic document = webcontrol1.executejavascriptwithresult("document"); var p = document.getelementsbytagname("p");
but doesn't work
try following:
var p = document.getelementsbytagname("p")[0].innerhtml;
Comments
Post a Comment