Micro Focus QTP (UFT) Forums
objbrowser.back throws 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: objbrowser.back throws general run error (/Thread-objbrowser-back-throws-general-run-error)



objbrowser.back throws general run error - Wiz83 - 05-04-2012

hi,

the below piece of code is throwing a General run error.

Code:
Set objbrowser = Browser("CreationTime:=0")
Set objpage = objbrowser.Page("title:=.*")
objbrowser.Back

When I try to find out what the error is it says Error #-2147467259, but the Err.Description was blank. Searching Google for -2147467259 didn't return anything.

I'm using IE 8 and QTP 11.

please help!


RE: objbrowser.back throws general run error - sshukla12 - 05-04-2012

Hi,

Sometimes application is designed in a way that it dosen't support the back button operation, try to do this manually and check if application supports it or not.

Regards,
Sankalp


RE: objbrowser.back throws general run error - Wiz83 - 05-04-2012

hi sankalp,

I can hit the back button manually on the browser on the Website which I'm automating, any other ideas?




RE: objbrowser.back throws general run error - sshukla12 - 05-04-2012

Hi,

Just make sure u have focus set on the page where u are using .back function.

Regards,
Sankalp

Hi,

IF above dosen't work please try this:
1. In IE settings, go to Tools -> Manage Add-ons
2. Select the BHOManager Class
3. Click the Enable button

Let me know if this works 4 u or not.

Regards,
Sankalp


RE: objbrowser.back throws general run error - Wiz83 - 05-04-2012

BHOManager Class was disabled, after I enabled it and restarted the browser it worked. thank you so much!


RE: objbrowser.back throws general run error - sshukla12 - 05-07-2012

Hi,

Glad to hear it worked 4 u. Big Grin

Regards,
Sankalp


RE: objbrowser.back throws general run error - mrinal_nandi - 05-11-2012

Hi Sankalp,
Could you provide more detail on BHOManager Class?
Thanks in advance.


RE: objbrowser.back throws general run error - sshukla12 - 05-11-2012

Hi Mrinal,

BHOmanager class is something that I think is beyond the scope of this forum. I mentioned it in the post to just make sure if problem is related to some configuration of IE to support QTP.
But if u really want to have feel of it u can google it, google can better help u, I have just basic knowledge of its integration with QTP.

Regards,
Sankalp


RE: objbrowser.back throws general run error - qtpguy0424 - 12-21-2012

Hello,
I am having the same exact problems with the same exact issues to the resolutions. However, my BHO manager is Enabled and the .Back function is Still NOT working. I tried using WSH to click the back button, but that only works when there is one browser open. I have to be able to do this while ALM and my application are both open. Any other solutions?