Hi, Try giving the classname as WebLink instaed of Link.
Regards, Suman CH On Fri, Nov 22, 2013 at 4:23 AM, Rajeshwari Sudhakar <[email protected]>wrote: > *on using set *box=browser("creationtime:=0").Page("title:=.*") .it > doesnt not give general run error, but neither do we get the expected > output ..... it fails to identify any links in the page. > > > On Thursday, November 21, 2013 12:42:20 PM UTC, Rajeshwari Sudhakar wrote: >> >> while accessing the child objects of the page i get general run >> error....previously running script also is giving an error.....even after >> uninstalling qtp 10, n installing qtp 11.5 getting the same error... can >> u somebody please guide as i am terribly stuck .... i m unable 2 go >> further.... >> >> -2147467259 - tats the error code i am getting >> >> >> for ref i hv given the code below >> w3schools.com<http://www.google.com/url?q=http%3A%2F%2Fw3schools.com&sa=D&sntz=1&usg=AFQjCNG4g2GQM4_AIjdpBxisFAik4YaFkw>home >> page: >> >> Set box=browser("creationtime:=0").Page("title:=.*").WebElement( >> "class:=boxRef") >> >> >> Set desc=Description.Create >> desc("micclass").value="Link" >> ' >> Set box_links=box.ChildObjects(desc) '>>>>>>>>>>>>>>>>>general run >> error-----> -2147467259 erroe code at this point >> MsgBox GetLastError >> >> print "total links " & box_links.count() >> >> For i=0 to box_links.count-1 >> print box_links(i).getroproperty("innertext") >> >> Next >> > -- > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
