Micro Focus QTP (UFT) Forums
Error in childitem method - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Error in childitem method (/Thread-Error-in-childitem-method)



Error in childitem method - mailashy78 - 11-25-2009

Hi,
I am trying to enter the username in orkut using the chilitem method in a webtable.

below is the sample code.
Code:
browser("orkut - login").Page("orkut - login").WebTable("Account").ChildItem 1,1,"WinEdit",1.set "test"
But i get error message.Please let me know the correct code.

Thanks
Ashok


[/u]


RE: Error in childitem method - sreekanth chilam - 11-25-2009

Hi,

As it is a Web Appl,It should be "WebEdit" rather than "WinEdit".

Code:
browser("orkut - login").Page("orkut - login").WebTable("Account").ChildItem(1,1,"WebEdit",0).set "test"