Hi Govind, Thanks for your reply. Its working fine...:)
On Sat, Mar 5, 2011 at 8:52 PM, govind sirvi <[email protected]> wrote: > Hi Avinash, > > Use the below code .The below code clicks on a latest mail with a subject > > rowNum=Browser("Inbox (19) - Yahoo! Mail").Page("Inbox (19) - Yahoo! > Mail").WebTable("Inbox").GetRowWithCellText("Subject",7,1) > > set LinkObj=Browser("Inbox (19) - Yahoo! Mail").Page("Inbox (19) - Yahoo! > Mail").WebTable("Inbox").ChildItem(rowNum,7, "Link",0) > LinkObj.click > > > I hope this is what u r looking for,kindly do reply to this mail if u r > facing any problem > > Thanks and Regards, > Govind > > On Fri, Mar 4, 2011 at 8:07 PM, avinash vl <[email protected]> wrote: > >> Hi, >> >> I'm working with yahoo mail and my intent is to click on a certain mail >> with the "Subject<something>" >> >> The following code works fine, if the mail subject is unique. >> >> >> >> >> Browser("name:=Inbox.*").Page("title:=Inbox.*").Link("text:="&linkName).Click >> >> >> >> But when the subject repeats, I need to click on the latest mail (ie 1st from >> the web table) so I tried the following code. >> >> >> >> rowCount=Browser("Inbox (19) - Yahoo! Mail").Page("Inbox (19) - Yahoo! >> Mail").WebTable("Inbox").GetROProperty("Rows") >> >> >> >> For i=2 to rowCount >> >> If Browser("Inbox (19) - Yahoo! Mail").Page("Inbox (19) - Yahoo! >> Mail").WebTable("Inbox").GetCellData(i,7)=linkName Then >> >> ........... >> >> I'm stuck here. >> >> >> >> Please suggest me a method to click on the link available in the web table >> >> Please correct me if I’m wrong >> >> >> >> Thanks and regards, >> >> Avinash >> >> -- >> 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 >> > > > > -- > Thanks and Regards, > Govind > > -- > 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 "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
