| || |
General run error when pulling page source code
Hello everyone, recently I upgraded one of my QTP machines to use IE7 instead of IE6, and during the first few runs, everything worked fine.
Shortly after, when I was toying with some IE settings, I accidentally hit the "Reset internet Settings" button under the advanced tab of internet options. Since then, my QTP program has thrown a "General Run Error" on the following line of code:
htmlSourceCode = Browser("Browser").object.document.documentElement .outerHTML
When I originally encountered the problem, I went through each and every IE setting, and set them exactly how I had my other IE7 QTP machines set up, but this did not help. I then went on to upgrade the QTP version from 9.2 to 9.5, but this also had no effect.
The code thrown by the err object when this occurs is
I have tried to search these forums, and google as many different things as I could, but could not locate anyone else with the same issue. If anyone has any ideas on how to fix the error, or knows of another way to pull the source code of a page, it would be greatly appreciated!
Thanks in advance
Re: General run error when pulling page source code
To get page source in another way, try this:
sPageSource = Browser("xx").Page("xx").GetROProperty("innerHTML" )
>ideas on how to fix the error<
4 this - it is not enough of information from you.