Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page Cannot Be Displayed issue
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
I recorded a script on a web based app, when i try to replay it, i get a page cannot be displayed form, when i click refresh, the app comes up and it qtp starts to run the test. how do i get around this? I recorded myself clicking refresh but then i get a error when trying to run qtp.

Do i need to code something before the test to have it bybass the page cannot be displayed? if i go into the app manually, i dont get it, it only happens when i try to run a qtp test on the app. Like i said though, when it runs, it stops when the Page Cannot be displayed page appears but if i manually click the IE refresh button, QTP then starts the test
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Have you selected Web add-in, if you have selected Web add-in then paste the code you got while recording
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
yes web add in is selected, the code that is generated is simply clicking refresh but when you leave the refresh code in, QTP throws an error, if take it out, the page that it starts to run on shows Page cannot be displayed, but if you manually click refresh while qtp is trying to go to the next line, the app form appears and qtp starts to run on the page like its supposed to
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
if you are trying to refresh with recorded one probably you wont

Use this code :

Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{F5}"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  verify that parent properties match object currently displayed in your application. sona 0 3,137 02-21-2016, 12:00 PM
Last Post: sona
  Auto Complete list not displayed in PEGA7 adityacharan 0 2,417 11-29-2015, 12:07 PM
Last Post: adityacharan
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 5,090 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  Menu is not displayed on the website to run QTP 11 jacosta 1 2,515 10-02-2012, 08:47 PM
Last Post: freeboynil
  How to Test asp.net search page having result displayed in Gridview? Sagar S 1 7,155 09-26-2012, 10:27 AM
Last Post: Sagar S

Forum Jump:


Users browsing this thread: 1 Guest(s)