04-19-2011, 06:55 PM
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:
Second Try:
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