04-20-2011, 07:58 PM
i'm trying to do a descriptive programming for our test website but QTP cannot recognize the page. I test the same code for other website like Yahoo and Google and it is working fine.
i'm pretty new in QTP, as i have started using this just last week. if some expert can give me a working solution it will be very much appreciated. below are my codes... i'm not sure if you can access my webpage since it's only accessible on our LAN.
'-------------------------------------------------------------------
'-------------------------------------------------------------------
i'm pretty new in QTP, as i have started using this just last week. if some expert can give me a working solution it will be very much appreciated. below are my codes... i'm not sure if you can access my webpage since it's only accessible on our LAN.
'-------------------------------------------------------------------
Code:
'*** Yahoo!
'SystemUtil.Run "iexplore.exe", "https://login.yahoo.com","","open"
'strTitle = "Sign in to Yahoo!"
'*** Google
'SystemUtil.Run "iexplore.exe", "http://www.google.ca","open"
'strTitle = "Google"
'*** PTE
'SystemUtil.Run "iexplore.exe", "http://bptest.wmic.ins/wps/portal/broker","","open"
'strTitle = "[QA] Wawanesa Broker Portal"
' sync and get title of the initial page
With Browser("title:=" & strTitle).Page("title:=" & strTitle)
.Sync
MsgBox .GetROProperty("title")
End With