Micro Focus QTP (UFT) Forums
hi need help regarding regular expression on "gmail" windows - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: hi need help regarding regular expression on "gmail" windows (/Thread-hi-need-help-regarding-regular-expression-on-gmail-windows)



hi need help regarding regular expression on "gmail" windows - hari101083 - 04-25-2008

Code:
msgbox Browser("Gmail - Inbox (15)").Page("Gmail - Inbox (15)").Frame("v1").WebTable("mails").RowCount

my aim is to click on the mail in the INBOX.
i have used regular expression for Browser , Page and Frames.
for the above program i am getting the rowcount for the first time.

when some new mails are received in Inbox , the above program is not working.

the error showing is
"cannot identify the "mails"object's parents"v1"(classFrame). verify that parent properties match an object currently displayed in your application"


RE: hi need help regarding regular expression on "gmail" windows - niranjan - 04-26-2008

Try using DP.
Example:
Code:
Browser("name:=.*").Page("title:=.*)....



RE: hi need help regardign regular expression on "gmail" windows - hari101083 - 04-26-2008

Hi Niranjan,

thnx for ur reply.

i have tried using DP and getting the same error..

here is the code i used...

Code:
msgbox Browser("name:=.*").Page("title:=.*").Frame("name:=v1").WebTable("x:=166","y:=215").RowCount

it is working fine for 2 times and when new mail is received in INBOX the aboove code is not working... and also getting the same error as in my first post...

Kindly suggest...

Hari


RE: hi need help regardign regular expression on "gmail" windows - niranjan - 04-26-2008

Did you spy on the object once you receive a new email?
Are the property values same or changing? If so what are remaining constant?
Try to use the property which remain constant even when you receive a new email.


RE: hi need help regardign regular expression on "gmail" windows - vinaykumar28 - 05-29-2008

Hi,
Even i am stuck in a similar situation, i have to find a particular mail in the Inbox and open that mail and fetch some data from the mail. Some one advised me to use table checkpoint and childtime. Till now i have placed the checkpoint which finds if the particular mail is present or not and it passes. But now i have script an action how to make that click an open the mail.
They told that i have to make use of loop from the table, but was not able to understand.

Any suggestion on this.

Thanks,
Vinay