Page Cannot Be Displayed issue - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Page Cannot Be Displayed issue (/Thread-Page-Cannot-Be-Displayed-issue) |
Page Cannot Be Displayed issue - doors37 - 01-10-2012 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 RE: Page Cannot Be Displayed issue - sunnyk8 - 01-10-2012 Have you selected Web add-in, if you have selected Web add-in then paste the code you got while recording RE: Page Cannot Be Displayed issue - doors37 - 01-10-2012 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 RE: Page Cannot Be Displayed issue - sunnyk8 - 01-10-2012 if you are trying to refresh with recorded one probably you wont Use this code : Code: Set WshShell = CreateObject("WScript.Shell") |