Re: Suddently QTP doesn't recognize Firefox as a browser object (2398 Views)
Reply
Valued Contributor
CPTLaura
Posts: 274
Registered: ‎12-13-2012
Message 1 of 11 (2,874 Views)

Suddently QTP doesn't recognize Firefox as a browser object

QTP 11.0 running on Windows 7 with up-to-date service packs

 

My scripts run a set of tests in three browsers, Firefox, Chrome, and IE. They have been running fine. No problem. The tests all call a script to start the browser.

Today I used QC to run two tests, one after the other. Both tests run three times, once in each browser.

The first test ran fine. The second one failed. The script that starts the browsers is suddenly failing on Firefox. The first failure came literally minutes after the script ran fine. Nothing has changed on the test machine.

Here is the message I get -- the old familiar one:

------------------
Cannot identify the object "BrowserTO" (of class Browser). Verify that this object's properties match an object currently displayed in your application.

Line (31): "currBrowser = Left((Browser("BrowserTO").GetROProperty("Application Version")),5)".

Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
-------------------

When I Open the registry and use the "Highlight in Application" tool, the "BrowserTo" object is not found when Firefox is running. But it works just fine for Chrome and IE.

Object Spy identifies the Firefox window only as "Window: Mozilla Firefox.  But for the other browsers, it correctly identifies them as "Browser: Browser"

Here is what I have done to try to resolve the problem:

1. Rebooted the test machine - didn't help
2. Uninstalled Firefox and immediately reinstalled it. - didn't help
3. Reinstalled QTPWEB_00112 - didn't help

Here is the total Product Information dump -- but I only have ActiveX, VB and Web turned on.

Product Information
Product name: QuickTest Professional
Product version: 11.00
Product ID: QTPRPID11.00/01
Product build: 1018
Operating system: Microsoft Windows 7 Service Pack 1 (Build 7601)
Internet Explorer version: 9.0.8112.16421
ALM/QC connectivity: 11.0.0.7484
Add-in Information:
Name
.NET
ActiveX
Java
Silverlight
Visual Basic
Web
WPF
Hotfix and Patch Information:
Name
QTP_00699 for HP QuickTest Professional 11.00 QFE
QTP_00709 for HP QuickTest Professional 11.00 QFE
QTPWEB_00078 for HP QuickTest Professional 11.00 QFE
QTPWEB_00086 for HP QuickTest Professional 11.00 QFE
QTPWEB_00090 for HP QuickTest Professional 11.00
QTPWEB_00102 for HP QuickTest Professional 11.00
QTP_00919 for HP QuickTest Professional 11.00
QTP_00925 for HP QuickTest Professional 11.00
QTPWEB_00112 for HP QuickTest Professional 11.00

-----------------------------------

HP Expert
lei_shi5
Posts: 101
Registered: ‎06-03-2012
Message 2 of 11 (2,858 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

Hi,

 

Please check the following points:

 

1. Firefox version

 

2. Add-ins loaded

 

Kind regards,

 

HP QTP Support

Frequent Advisor
GeorgeCC
Posts: 104
Registered: ‎02-08-2012
Message 3 of 11 (2,852 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

Problem is/was that my FF installation was hit with an update. The new version was 17.0.1 and the QTP add-on reported that it was incompatible and it was disabled.

 

Uninstalled FF. Dug around and found the site for downloading older versions. Tried 17.0.0. It failed. Tried 18.0. It failed. Tried 16.0.xxx and it is running with QTP.

 
What I would REALLY like to know is what versions are supported and if there is a newer version of the add-in I should have for a newer version of Firefox.
Occasional Advisor
joe_colantonio
Posts: 9
Registered: ‎06-23-2010
Message 4 of 11 (2,842 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

Hi,

 

Have you tried installing patch QTPWEB_00122 for firefox 17 support? For a list of what is supported by QTP with patch updates I maintain an updated support list with patch updates you could check out. 

 

Hope this helps.

 

Cheers,

Joe

http://www.joecolantonio.com

Frequent Advisor
GeorgeCC
Posts: 104
Registered: ‎02-08-2012
Message 5 of 11 (2,838 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

Yes. That patch is there and always has been. Everything worked fine until the Friday afternoon that Firefox got upgraded from 17.0.0 to 17.0.1.

Frequent Advisor
GeorgeCC
Posts: 104
Registered: ‎02-08-2012
Message 6 of 11 (2,832 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

And this just in...

 

The HP Patch releasesed earlier this month, QTPQEB_00122, fixes the problem with Firefox 17.0.1 -- AND appears (so far) to work with Firefox 18.0, although I doubt that use is supported by HP.

Occasional Advisor
MVCHOW
Posts: 12
Registered: ‎06-04-2012
Message 7 of 11 (2,484 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

Hi Lei,

 

We have a requirement to execute QTP scripts on higher version of firefox (22.0).

 

Is QTP 10.0 supports firefox 22.0 or higher version of 18.0.

 

Could you let me know if any work around solution on this.

 

Thanks

Veeru

Regards
Veeraiah
Valued Contributor
Anshoo_Arora
Posts: 82
Registered: ‎07-06-2011
Message 8 of 11 (2,476 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

[ Edited ]

QTP/UFT 11.5 supports FF 19.0 with patch QTP_0037.  See here:  http://relevantcodes.com/qtpuft-11-5-patches/

 

*Update: FF 21.0 supported with SP 11.52.


--
Anshoo Arora
Relevant Codes
LinkedIn
Regular Advisor
HaiTNguyen
Posts: 105
Registered: ‎11-29-2011
Message 9 of 11 (2,417 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

And you should disable Auto Update to avoid this in the future :)
Regular Advisor
HaiTNguyen
Posts: 105
Registered: ‎11-29-2011
Message 10 of 11 (2,417 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

Can you upgrade to QTP11 or UFT 11.50? QTP11 supports FF up to 19, not yet to support FF20/FF21 but soon to be.
Super Advisor
csm2mk
Posts: 216
Registered: ‎02-08-2013
Message 11 of 11 (2,398 Views)

Re: Suddently QTP doesn't recognize Firefox as a browser object

Safest bet would be to upgrade and/or patch it.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.