Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
find the property value of a run time object
#3
Not Solved Wink 
Hi Reema,

Try this code:

Code:
'  Creating a child object.
Set ObjOpCoCode = Description.Create()
ObjOpCoCode("micclass").value = "Link"
ObjOpCoCode("html tag").value = "A"
ObjOpCoCode("text").value = DataTable.Value("OPCOCodeToEdit","rTD")
ObjOpCoCode("name").value = DataTable.Value("OPCOCodeToEdit","rTD")
ObjOpCoCode("hash").value = "#[0-9]{1,}"


' Making the collection object
Set OpCoCodeId =browser("").Page("").ChildObject(ObjOpCoCode)

' Doing the  count of  objects
intCount=OpCoCodeId.count

' Getting the desired property from the object
For iCnt =1 to intCount
  strHash = OpCoCodeId(iCnt).GetROProperty("hash")
  print strHash
Next

It should work.....Smile
Reply


Messages In This Thread
RE: find the property value of a run time object - by A.Saini - 10-28-2010, 04:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  swfwindow object name getting changed after each run saniya 1 1,686 10-10-2018, 09:02 PM
Last Post: TheGlovner
  Object identification is taking too much time JACKSPARROW 0 1,701 01-17-2017, 11:08 AM
Last Post: JACKSPARROW
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,626 11-22-2016, 12:43 PM
Last Post: Ankur
  QTP not recogonising object during run time Lavanya N 2 3,727 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 12,174 08-27-2015, 10:18 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)