gmail automation - issue

62 views
Skip to first unread message

Mayuri Gupta

unread,
Dec 26, 2012, 10:57:16 PM12/26/12
to qtp-ele...@googlegroups.com
 
Please help , I am not sure why below code is not working.
I used the correct properties using object Spy and still both the browse/page objects falls into Else loop stating not preresent.
Kindly rectify.

Dim v_url
Dim br_d , pg_d
v_url ="http://gmail.com"

systemutil.Run"iexplore.exe",v_url

wait 6

Set br_d = description.Create()
br_d("title").value = "Gmail: Email from Google"

If browser(br_d).Exist(2) Then
 msgbox " present"
 else
 msgbox "not present"
End If

Set pg_d = description.Create()
pg_d ("title").value = "Gmail: Email from Google"

If page(pg_d).Exist(2) Then
   msgbox " present"
 else
 msgbox "not present"
End If


--
Mayuri Gupta
US - Secaucus

aruna

unread,
Dec 27, 2012, 1:31:29 AM12/27/12
to qtp-ele...@googlegroups.com
I copied the same code, its working...Try to start a new test and run it :))
Reply all
Reply to author
Forward
0 new messages