-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Software
- HP Workspace
- Truclient Javascript getelement types

Create an account on the HP Community to personalize your profile and ask a question
Your account also allows you to connect with HP support faster, access a personal dashboard to manage all of your devices in one place, view warranty information, case status and more.
It has been a while since anyone has replied. Simply ask a new question if you would like to start the discussion again.
11-09-2017 10:28 AM
Product: Loadrunner Vugen
Operating System: 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 Terms of Use and Rules of Participation.
Didn't find what you were looking for?
Ask the community
† 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>.