Micro Focus QTP (UFT) Forums
How to get access to the variables declared as java webclient objects in JS - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How to get access to the variables declared as java webclient objects in JS (/Thread-How-to-get-access-to-the-variables-declared-as-java-webclient-objects-in-JS)



How to get access to the variables declared as java webclient objects in JS - Bhuvaneswari - 06-09-2009

Hi,

We are currently using QTP 9.5.

We have a web application being developed using .Net framework. This .Net framework allows them to dynamically generate html id based on number of controls loaded on the page which will differ for every build.

We first used html id as unique identification of webobjects. But as html id is changing for every build, we approach the development team for the unique id.

They informed that their .Net framework will map control's html id to a variable declared in Java webclient object which will be constant for everybuild .

Could you please let us know, how to get access to the variables declared as java webclient objects in javascript through QTP Run-time properties of page.