Micro Focus QTP (UFT) Forums
How to fetch the multiple properties from the 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to fetch the multiple properties from the object (/Thread-How-to-fetch-the-multiple-properties-from-the-object)



How to fetch the multiple properties from the object - venkatbatchu - 10-23-2009

Hi,
I have one text field which having properties are type=text, name=Name, html tag=Input,...
i want to fetch all these properites in to a single variable m

Code:
m=Browser("xxxx").Page("xxxxx").Frame("main").WebEdit("Name").GetROProperty("type","name")
this is the way i have tried but some how i am able to get the first property mentioned in getro porperty

my requirement is like this
m=text,name,Input (we can use any delimiter,,,,)

Thanks in advance,
Venkat.


RE: How to fetch the multiple properties from the object - Saket - 10-23-2009

Hi Venkat,
You will not be able to use the GetROProperty method to retrieve more than one property.

what you can do is retrieve all the propeties in different variables and can concatenate to get the required result.