Consider the following html code.
<div id="mylinks"> This is my <b>link collection</b>: <ul> <li><a href="www.borland.com">Bye bye <b>Borland</b> </a></li> <li><a href="www.microfocus.com">Welcome to <b>Micro Focus</b></a></li> </ul> </div>
The following table details the different properties that return.
Code | Returned Value |
---|---|
browser.DomElement("//div[@id='mylinks']").GetProperty("textContents") |
This is my link collection: |
browser.DomElement("//div[@id='mylinks']").GetProperty("innerText") |
This is my link collection:Bye bye Borland Welcome to Micro Focus |
browser.DomElement("//div[@id='mylinks']").GetProperty("innerHtml") |
This is my <b>link collection</b>: <ul> <li><a href="www.borland.com">Bye bye <b>Borland</b></a></li> <li><a href="www.microfocus.com">Welcome to <b>Micro Focus</b></a></li> </ul> |
Agent.SetOption(OPT_COMPATIBILITY, "13.0.0")