05-29-2012, 07:15 AM
Hi,
I have another problem, when I used childItem and childItemCount, I encountered "Object required".
Below is my code:
Below is the code which QTP says "Object Required":
Can you help me to solve this.
Thanks,
I have another problem, when I used childItem and childItemCount, I encountered "Object required".
Below is my code:
Code:
rWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").RowCount
For i=1 to rWebBox
cWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").childItemCount(i,1, "Image")
For j=0 to cWebBox
Set iWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").childItem(i,1, "Image", cWebBox)
roWebBox = iWebBox.getROProperty("alt")
Next
Next
Below is the code which QTP says "Object Required":
Code:
Set iWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").childItem(i,1, "Image", cWebBox)
Can you help me to solve this.
Thanks,