• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
HP Recommended
Loadrunner Vugen
Microsoft Windows 10 (64-bit)

I am new to using Truclient and would like to know why I can not use the javascript method:

document.getElementsByClassName(), document.getElementsByName(), document.getElementsByTagName()

 

I was able to use document.getElementById() and was able to retrieve the textcontent but would like to also be able to use the other element because not all the html content have IDs.  My goal is to retrieve visible text from a table using the tagname <tr>.  Here is what I would like to put in the javascript evaluate: var table = document.getElementByTagName("tr")[3].textContext.

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.