Micro Focus QTP (UFT) Forums
Needs help to open first mail in the Mail Box at every time - 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: Needs help to open first mail in the Mail Box at every time (/Thread-Needs-help-to-open-first-mail-in-the-Mail-Box-at-every-time)



Needs help to open first mail in the Mail Box at every time - SNR - 05-14-2009

Hi,

I need some work around regarding the following situation:

I wanted to open the first mail in the mail box at every time we open the mail box even though the subject is same. I tried by using x, y and width, also with index and location but not worked out.

Regards
Narasimha


RE: Needs help to open first mail in the Mail Box at every time - manojith1984 - 05-15-2009

Hi,
In that case u can get the "Recieved Time" and open the with the Source_index....I think this can help u


RE: Needs help to open first mail in the Mail Box at every time - sreekanth chilam - 05-15-2009

Hi ,

Use "Child Item" method and return the link under subject field & then click on the link.
Before doing that u find out what is starting row# of webtable (Say it is 1 & Subject column is 3)

Code:
Browser(..).Page(..)Webtable(..).childItem(1,3,"Link",0).click

By the above code , irrespective of the number of rows in webtable(MailBox) we can click on the starting mail and it will be opened.


RE: Needs help to open first mail in the Mail Box at every time - SNR - 05-20-2009

Hi Manojit,

Thanks for the reply. I have checked it but here source_index is not constant, how to track exact value and also recieved time is also not fixed na, then how to procedd? can please explain clearly

Thanks and Regards
Narasimha
Hi Sreekanth,

Thanks for the reply. I have checked it but here when add the mail subject to OR web table is not being displayed, then how to track the first row? Can u please explain clearly

Thanks and Regards
Narasimha


RE: Needs help to open first mail in the Mail Box at every time - sreekanth chilam - 05-20-2009

Hi ,

Check with Object Spy whether mail inbox is shown as "WebTable" or not.


RE: Needs help to open first mail in the Mail Box at every time - SNR - 05-20-2009

Thanks for the reply. When subject is added to the OR, Web table is taken but will display then unable to interact to web table. Can u please explain clearly

Thanks and Regards
Narasimha
I have checked it, by using Objcect Spy it is displaying Web table and if u add the same object to the OR, it is not displaying

Thanks and Regards
Narasimha


RE: Needs help to open first mail in the Mail Box at every time - sreekanth chilam - 05-20-2009

HI ,

Can u visualize the issue to me by attaching snapshot.