We have a static object in our application but that object is dynamic. For example, when we do a search criteria we get the total number of records reterived. This number is identified as the static object.
My work is to reterive that number and save it in a variable. Since it is dynamic i unable to reterive. Is there any way to reterive. Following is the code
I'm struggling with somewhat the same problem, but I'm ULTRA green in QTP and did not understand what was done here. The tutorial did not help, and neither did the professional user guide for something so easy as this.
I have a dynamic website that uses dynamic links when navigating. This gives me of course a warning when I run the test. The smart identifier finds the object, but it takes too long.
It's a search site, where the links give a count of how many items it found on the criteria you searched on.
So in the test pane I have :
ITEM: XXXXX for sale (where x is a dynamic number going 5 digit high)
VALUE: BLANK (This have nothing, since I'm only opening a new page.
DOCUMENTATION: Click the "XXXXX for sale" link
I've tried to parameterizised it like this [0-9][0-9][0-9][0-9][0-9] in the Data Table view. But this would not be a good idea in retrospect,as I have 12 other "For sale" category on the same page. Neither did it help for that matter,since the smart identifier was invoked.
Would it be possible to directly link it to the URL? As that at least is unique, and static.
I would greatly appreaciate it if someone respond, as I have now struggled for 9 hours trying to figure this out.