This is very odd and I'm not sure where to go next so I thought I'd post it on this forum.
I have a set of scripts that works perfectly when I run them (or when other users run them).
But they fail when a particular user runs them.
The problem doesn't seem to have much to do with QTP other than it only happens in QTP.
There is a particular line that goes like this:
<font class="small">Code:</font><hr /><pre>var hashIndex = self.location.href.indexOf("#")</pre><hr />
When the user goes to the home page in a browser, it all works perfectly.
When the user runs a script through QTP that goes to the home page in a browser this line results in a "permission denied" message in the browser.
We're opening the browser like this:
<font class="small">Code:</font><hr /><pre>SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE",<our url>,"","open" </pre><hr />
Once the user gets this error, they can hit F5 on the browser and the page loads fine.
It's a bizzare permissions thing and I wondered if anyone else had come across it. I'll post the solution when I find it.
Everywhere's within walking distance if you have enough time.
Not so a solution as a workaround, but why not start iexplore with a blank page, and then navigate <our url>?
'coz we're programmers - not users
Also try changing the statement as
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE",<our url>
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
Thanks guys, I tried both of these, but it made no difference.
What did make a difference though, was to uncheck the internet explorer option "bypass proxy server for local addresses" and then check it again.
Don't know why, I assume IE settings got corrupted somewhere.
Thanks for trying to help,