Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

Object Name Is Also A Dynamic Value

$
0
0
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

Viewing all articles
Browse latest Browse all 1653

Trending Articles