Micro Focus QTP (UFT) Forums
Temporary objects via script???? - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Temporary objects via script???? (/Thread-Temporary-objects-via-script)



Temporary objects via script???? - jcraig26 - 10-31-2012

I use a random number to generate a unique user for testing purposes. The problem is that later in the testing I need to click on a '+' next to this name to expand the data for that user.

I cannot use indexing because the index number will change depending on whether another user is added in the list and ends up before my user. I cannot even depend on the order changing in a normal manner since someone else could add additional users to this list.

What I was looking to do - and I have no idea if it is possible - was to create the object for the '+' during the test by programming. I can identify the specific '+' by the name of the user being next to it. I store the username as a variable as part of this testing.

So, any idea if it is possible to create objects through scripting that use the relative location?

Help?

Jamie