Micro Focus QTP (UFT) Forums
Object Name Is Also A Dynamic Value - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Object Name Is Also A Dynamic Value (/Thread-Object-Name-Is-Also-A-Dynamic-Value)



Object Name Is Also A Dynamic Value - zunebuggy - 05-16-2017

I have to grab a numeric value off a web page.  When I use Object Spy, it breaks it down like this:

Browser : <browser name>
             Page : <page name>
                     Frame : Frame
                              WebTable : <web table name>
                                             WebTable : <web table name>
                                                           WebElement : nnnnnnnnnnn

where nnnnnnnnnnn is the numeric value I need to capture.

After adding this to the repository it simply shows up as:

Browser("myBrowser").Page("myPage_8").Frame("Frame").nnnnnnnnnnn

The name of the object is the number I need and it is a WebElement.  I can't have this be the object name because this number will always be unique and that would mean next time I run this, that object will not be found.

I do not need the number to be a long integer.  As a matter of fact I would prefer a numeric string.  How do I grab this value?  This is probably very simple but I am used to GetROProperty("value")

Thank you,
Zune