Micro Focus QTP (UFT) Forums

Full Version: ChildItem and ChildItemCount require objects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using Flight Reservation application of mercury.

If I execute the code:

Code:
Set X=Browser("name:=Register: Mercury Tours").Page("title:=Register: Mercury Tours").WebTable("name:=firstName")

X.ChildItem(2,1,"WebEdit",0).Set "Hi"

It returns an error saying "Object Required". The same thing happens with the ChildItemCount method.

I am using QTP 10. Is it the reason of the error being thrown?

I am trying the code on Registration Page

If you spy the table "contact information", you should be able to see 18 rows in the spy window.

The rowcount and columncount are working perfectly fine. Please help!