Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP cannot identify my webpage
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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.

'-------------------------------------------------------------------
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
'-------------------------------------------------------------------
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
is this a problem bacause of the [ ] on the page title?
i have similar problem with web page that has | on the title.

pls. help.... asap.
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Try

Code:
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


For example the following works

Code:
SystemUtil.Run "iexplore.exe", "http://www.seobook.com/video-google-seo-friendly-page-titles","","open"
strTitle = "\[Video\] Google \& SEO Friendly Page Titles \| SEO Book\.com"
With Browser("title:=" & strTitle).Page("title:=" & strTitle)
.Sync
MsgBox .GetROProperty("title")
End With
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
i found the same question from the search but did not see any one responding to it.

can any one please tell if the latest version of QTP supports Telerik ?

Also does QTP support the IBM Tool Unica ?
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
When ever you see a special charecter(.,*{[ etc) use \ infront of that so that that character will be ignored.Special charecters will not be identified and so the error occurs.you can use .* as well but it skips all the letters after .*
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  webpage WinObject has same name Ananthakumar_S 0 1,693 11-30-2016, 09:48 PM
Last Post: Ananthakumar_S
  Check specific links of a webpage rocky9 1 2,702 06-11-2015, 06:23 PM
Last Post: venkatesh9032
Exclamation How to verify whether pdf is completely loaded or not in webpage nmakkena 1 2,672 08-27-2014, 04:09 PM
Last Post: vinod123
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,332 05-15-2014, 05:30 PM
Last Post: vishnu1067
  Comparing webtable data with weblist and webelements in other webpage arnav 1 5,811 04-18-2014, 10:01 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 2 Guest(s)