Micro Focus QTP (UFT) Forums
unable to extract dynamic object values-webelement object - 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: unable to extract dynamic object values-webelement object (/Thread-unable-to-extract-dynamic-object-values-webelement-object)



unable to extract dynamic object values-webelement object - naniblr9 - 11-07-2009

Hi to everybody,

i am working with one health care project, i got an issue in that, i am having one object called patient id,which is dynamic,i am able handle it using regular expression,but my problem is that when i run my automation script "webelement object" is not able to identify ie dynamic object,but after completing my script with errors if i go to object repository and click on particular object property name and highlight it in application,object is getting highlighted without any issues.

Error which i am getting is "Could not able to identify webelement(xxxxxxx), please see whether the object is present in object repository or not.

Any anybody solve my problem,

What might be the problem?
Please i need answer urgently.

Thanks in advance for replying me.


RE: unable to extract dynamic object values-webelement object - basanth27 - 11-10-2009

I bet you must have had the innertext added for the webelement object on your OR.

1. Can you send a spyshot of your screen with the webelement ?

There are 2 ways to handle this,

1.Supply the innertext you are looking for dynamically into the webelement object. [ Use DP in this case ]
2. I am taking a wild guess that the dev would have had a webtable placed below the webelement. If you have the webtable then you can use that object to read through rows and columns and click or select whatever patient id you are looking for.

does this open the box ?