Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - While recording a login window QTP is identifying only parent window, then how can you identify the child objects?




273
views
asked marvit August 20, 2014 08:56 AM  

While recording a login window QTP is identifying only parent window, then how can you identify the child objects?


           

1 Answers



 
answered By Dharma   0  
you can use "ChildObjects" method to to identify child objects

Example:It will click on all child objects

Set oDesc = Description.Create()
oDesc("html tag").Value = "INPUT"
set hai=Browser("WinCraft2 - Enterprise_2").Page
("WinCraft2 - Enterprise").Frame("content").ChildObjects
(oDesc)
count1=hai.count()
msgbox hai1
For i=1 to count1
hai(2).click
Next
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert