selenium - Javascript get the value from an h4 Tag -
i trying value lotus of h4 tag code below
<a id="linksale" class="linkaccess" title="" href="/vp4/home/handlers/operationaccess.ashx?operationid=17285" onclick="javascript:prepareeventonlinksanchor(17285);"> <h4>lotus</h4> <p class="datesales">du <em><strong>mercredi 1 mai</strong> 9h</em> au <em><strong>dimanche 5 mai</strong> 6h</em> </p> <p class="baseline"></p> </a>
to did follow :
var h=document.getelementbyid("17285");
var i=h.getelementsbytagname("h4");
which returned following line :
<h4>lotus</h4>
what want value lotus
converted text.
document.getelementbyid("linksale").getelementsbytagname("h4")[0].innerhtml
will work
Comments
Post a Comment