Micro Focus QTP (UFT) Forums
Browser("BrowserName").Back gives General Run Error... - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Browser("BrowserName").Back gives General Run Error... (/Thread-Browser-BrowserName-Back-gives-General-Run-Error)

Pages: 1 2


RE: Browser("BrowserName").Back gives General Run Error... - deminiek - 10-07-2009

Thanks, Basanth. I know the Back arrow isn't disabled, because when I stop the test the browser is still open and I can manually click on it and get back to the right page. I'll capture the URL and give the .Navigate function a try. Since it navigates there in the first place, hopefully it won't mind navigating there again.

I'm finding out what you mean about 9.2. I learned QTP on 9.5, so using 9.2 is taking a little getting used to, since things don't always seem to work the same way. I've already looked at the HP site for patches, since until I got there, no patches had been installed. I only found a couple for 9.2 (both of which I installed), but there doesn't seem to be much available.

Thanks again to both you and Saket for the assist.


RE: Browser("BrowserName").Back gives General Run Error... - Saket - 10-07-2009

hi deminiek,
can you try with this and let me know if it works
Open a new function library.Write the function below in the function library.
Associate this library with your script.
Code:
Public Function MyBack()
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "%{LEFT}"
Set WshShell = Nothing
Wait 2
End Function
RegisterUserFunc "Browser", "Back", "MyBack", True



RE: Browser("BrowserName").Back gives General Run Error... - deminiek - 10-20-2009

Well, no luck with HP (big surprise). I'm trying to get our company to upgrade to 9.5, but in the meantime, I just had to work around the issue. I figured out a way to redo the script so I don't have to back up. Thanks anyway.


RE: Browser("BrowserName").Back gives General Run Error... - rizvia - 12-10-2013

Hi Basanth/Saketh,
Please suggest if you finally have a solution for this issue.
I'm having similar issue and tried all kinds of solutions but it did not help.
BHOManager.dll is enabled in my browser.