Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Object or Virtual Object
#8
Not Solved
Not sure if this is the right way to identify the dynamic Child Objects / Objects. This is was my last try. Need some help and direction.

I was trying to identify the dynamic Child checkboxes, but made no progress. I believe if I am able to figure out with the checkboxes, similar process would apply for the dynamic child webedit too. This is what I have tried with 2 different approach. I have attached snapshot from the ObjectSpy for the 1st checkbox and the Editbox.

The 1st approach returned results but they where all "TABLE" for 'html tag' and blank for 'html id' as per snapshot of the ouput in the attached document. The 2nd Approch produced not result as the count was 0 (ZERO). Both the codes are as below.

Please correct me where I went wrong.

Thanks,
Subha

First Try:
Code:
Set obj=Description.Create
obj("html tag").value="TABLE"
obj("name").value="WebTable"


set td_obj=Browser("wwe - WebWriter Enterprise").Page("wwe - WebWriter Enterprise").ChildObjects(obj)

msgbox td_obj.count
cnt = td_obj.count

Print "Count = "&cnt
For i = 0 to (cnt -1)
WIth td_obj(i)
print "Item : " & .GetROProperty("html tag") &" -- " & .GetROProperty("html id")
End With
Next

Second Try:
Code:
Set obj=Description.Create
obj("class").value="WebCheckBox"
obj("html tag").value="INPUT"
obj("type").value="checkbox"

set td_obj=Browser("wwe - WebWriter Enterprise").Page("wwe - WebWriter Enterprise").ChildObjects(obj)

msgbox td_obj.count
cnt = td_obj.count

Print "Count = "&cnt
For i = 0 to (cnt -1)
WIth td_obj(i)
print "Item : " & .GetROProperty("html tag") &" -- " & .GetROProperty("html id")
End With
Next


Attached Files
.doc   DynamicObject_Result.doc (Size: 164.5 KB / Downloads: 103)
Reply


Messages In This Thread
Dynamic Object or Virtual Object - by Suba - 04-08-2011, 02:54 AM
RE: Dynamic Object or Virtual Object - by Suba - 04-08-2011, 07:12 PM
RE: Dynamic Object or Virtual Object - by Suba - 04-09-2011, 03:07 AM
RE: Dynamic Object or Virtual Object - by Nilesh - 04-11-2011, 10:45 AM
RE: Dynamic Object or Virtual Object - by Suba - 04-19-2011, 02:45 AM
RE: Dynamic Object or Virtual Object - by Suba - 04-19-2011, 06:55 PM
RE: Dynamic Object or Virtual Object - by vIns - 04-27-2011, 02:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  virtual objects do not work kawagnes 0 968 08-28-2020, 12:02 PM
Last Post: kawagnes
  Could not create Java virtual machine TangShake 2 8,438 10-26-2017, 11:41 AM
Last Post: walshmagger
  Object Name Is Also A Dynamic Value zunebuggy 0 1,067 05-16-2017, 09:53 PM
Last Post: zunebuggy
  object spy not recognizing object.. pleaseeeee help Sonia Sadeque 3 3,214 12-22-2016, 02:42 PM
Last Post: ishan.mahajan@adp.com
  cannot create java virtual machine on QTP 12.02 version richa5685 0 1,860 02-23-2016, 11:18 AM
Last Post: richa5685

Forum Jump:


Users browsing this thread: 1 Guest(s)