Seeing similar queries often in my mail box these days, so I decided to record a couple of videos.

In case, If you haven’t counted emails in standard view (of Gmail) using QTP earlier, I would suggest you to attempt it now.  It becomes a bit interesting especially if you have never worked on frames before. Also watch the videos below it has a couple of methods to deal with dynamic objects and frame objects.

Counting number of emails in basic HTML view…

Counting number of emails in standard view…

This is the function in the videos above to extract the number from Inbox string –

msgbox mid(strText, instr(1,strText,"(") + 1, (instr(1,strText,")") - instr(1,strText,"(") - 1))