QTP11 IE9 Now Supported with Patch QTPWEB_00078

by Joe Colantonio on June 16, 2011

My team has QTP scripts that we run against different configurations to confirm that our application works as expected.

One of the upcoming initiatives is to validate our product in IE9. I was happy to learn today that HP just released a patch
(QTPWEB_00078>QTPWEB_00078) for testing web applications in Internet Explorer 9.

Patch QTPWEB_0078 includes support for working with Internet Explorer 9 on all operating systems that are supported by QuickTest Professional 11.

To download from HP: QTPWEB_00078
To download from joecolantonio.com: QTPWEB_00078

If your having problems with the download link go to -> http://www.joecolantonio.com/downloads/ to find the file

For an updated list of all patches available for QTP 11 check out the Patches section in my article:QTP 11 Support Matrix with Patch Updates

{ 72 comments… read them below or add one }

Yonke July 4, 2011 at 12:31 am

It’s Cool……

Reply

Joe Colantonio July 6, 2011 at 3:00 pm

Yonke » Yes – it is cool :)

Reply

Kishore July 13, 2011 at 6:46 am

I am not able to download the patch Patch QTPWEB_0078 from your site.

Reply

Joe Colantonio July 13, 2011 at 10:52 am

Kishore » Sorry Kishore – for some reason my WordPress keeps corrupting this link. If your having problems with the download link go to -> http://www.joecolantonio.com/downloads/ to find the file. Cheers~Joe

Reply

Nithya July 19, 2011 at 9:45 am

Hi,

Can you suggest me how to identify the file download dialog which appears in the bottom for IE 9 browser using QTP 11. I have installed the web patch for IE9.

Thanks,
Nithya.S

Reply

Joe Colantonio July 23, 2011 at 7:03 pm

Nithya » Hi Nithya – I’m still trying to find away to have QTP recognize this IE9 dialog. The best I can think of right now is to use a method like Device Replay. Anyone else have any suggestions?

Reply

Joe Colantonio March 13, 2012 at 6:54 pm

Hi Nithya,

I just found the following info from HP:

(Internet Explorer 9 and newer) The Download Notification Bar feature included on this version uses new controls, not supported by QuickTest Professional.

Note: An enhancement request was submitted for scenario. See QCCR1J21554 using instructions on bottom of this document.

Workaround

Since the download notification bar is recognized as single WinObject object, and considering the buttons therein do not change their location despite of the browser size (except if its width is less than 329 on a 1280×1024 screen resolution)calculating the button location can help getting the necessary coordinates to fire a .click method.

The following code is making use of the above said and is based on descripting programming:

objWidth = WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).GetROProperty(“width”)
savebtnY = 61
savebtnX = objWidth – 100
If objWidth < 329 Then
Browser(“creationtime:=0″).FullScreen ‘or rezise the browser window to show the appropriate coordinates are visible
End if

‘This will click the save dropdown button
‘Browser(“creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).Click savebtnX, savebtnY

‘This will click the save button only
Browser(“creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).Click savebtnX- 20, savebtnY

Reply

yael ro June 17, 2012 at 11:31 am

I need to do Save as. I clicked on save dropdown button
but the opened window doesn’t recognized in run Time.
How can I do Save as to download?
Thanks

Reply

Harsh Pandya March 7, 2013 at 2:27 pm

Try this:
‘This will highlight the download bar to grab focus on it.

Set DeviceReplay = CreateObject(“Mercury.DeviceReplay”)

Browser(“creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).highlight

‘This will right-click the save button to put focus on it.

Browser(“creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).Clickontext “Save”,,,,,true,micRightBtn,true

‘This will press the ‘down arrow’ then the ‘a’ key to activate the drop-down button and then activate the Save As command.

DeviceReplay.PressKey 208 ‘Presses ‘down arrow’ key
DeviceReplay.PressKey 30 ‘Presses ‘a’ key
Set DeviceReplay = Nothing

Reply

Sandler June 25, 2012 at 10:49 pm

Hello Joe,

Thanks for all the help you are doing for people like us. I tried handling “Save” document after clicking on “Download” on IE9 but unfortunately the above script doesn’t work for me.
The following error message I’m getting “Expected statement”at line “savebtnX =objWidth – 100″. any help would be highly appreciated

Regards

Reply

Joe Colantonio June 28, 2012 at 8:37 pm

Sandler » Hi Sandler – did you type in the code or copy it into QTP? When you copy it into QTP it sometimes does not work because there are hidden ASCII character that are entered. Try deleting the whole line and retype it.

Reply

testanalyst September 7, 2011 at 4:35 pm

It helped. Thanks much.

Reply

Joe Colantonio September 7, 2011 at 5:04 pm

testanalyst » Awesome!

Reply

VK September 7, 2011 at 4:42 pm

Great! It worked. Thank you so much!

Reply

Joe Colantonio September 7, 2011 at 5:04 pm

VK » Cool!

Reply

Anish Pillai September 12, 2011 at 1:17 pm

It didnt work for me… :( :(

The download hanged in between and it remained it in same state forever…

I’m using QTP 11 trial version on Windows 7.

Reply

testanalyst September 12, 2011 at 4:12 pm

Hey Joe,

Encountered an error on QTP11 tody. Sent you the message. How to send you the screenshots for the error?

-Testanalyst

Reply

venkatesh November 24, 2011 at 6:38 am

I’m using QTP 11 trial version on Windows 7

but qtp not recogniging objects in the IE9

Reply

sahil December 27, 2011 at 7:10 am

Can i use FF for recording and run script using QTP? Please tell me how? i tried alot but could not find.
Many Thanks..

Reply

Joe Colantonio January 3, 2012 at 12:34 pm

sahil » Hi Sahil – you should be able to record and run against FF just like you would with IE. If you are having issue’s first think to check is to make sure you have the latest QTP firefox patch installed:
http://www.joecolantonio.com/2011/12/20/qtp-firefox-4-0-5-0-6-0-7-0-8-0-patch-qtpweb_00090/
Cheers~Joe

Reply

Nagesh December 29, 2011 at 7:41 am

Hi Joe,

This site is really helpfull for the people who are working on QTP.
May I kow the Add-In to recognize flash objects with QTP.

Reply

Joe Colantonio December 30, 2011 at 12:51 pm

Nagesh » Hi Nagesh – thanks for checking out my blog! I’m glad you find it helpfull. QTP does not have a flash add-in that I’m aware of. I know that Adobe does have a Flex QTP add-in. For straight flash you might want to checkout instead. For more info on flex:

Support for Adobe (Macromedia) Flex applications is handled by Adobe. Adobe has released Flex Builder 3.0; this release includes the QuickTest Professional Flex add-in. The add-in was developed using QuickTest Professional’s Test Extensibility Architecture functionality. The Flex add-in is developed and owned by Adobe.
Hewlett Packard does not support the Adobe Flex add-in, therefore we strongly suggest contacting Adobe (http://www.adobe.com) to see about availability, support details, and pricing.

Adobe is providing the add-in via an automation package that is shipped with Flex Builder 3 Professional. Basic information on the automation package with QuickTest Professional integration is here:

http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html


http://www.adobe.com/products/flex/upgrade/

Users can download the automation package with QuickTest Professional integration here: http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex

A specific Adobe license is required and needs to be requested from Adobe. No specific Flex license is required on the QuickTest Professional side.

Note: Support for the Flex add-in is being provided by Adobe. Customers/end-users need to contact the Adobe support organization for help with problems or questions related to the Flex add-in.

Cheers,
Joe

Reply

ss April 11, 2012 at 6:32 pm

can any one tell where i can find IE 9 patch for qtp 10

Reply

Joe Colantonio April 12, 2012 at 1:43 pm

ss » Hi as far as I know HP has not release a IE9 patch for QTP10. Only QTP11 with Patch QTPWEB_00078 support’s IE9. I think HP does this so you have to upgrade to the latest version.

Reply

vivek May 3, 2012 at 2:35 pm

Which location need to keep this path file

Reply

Joe Colantonio May 8, 2012 at 11:04 am

vivek » Sorry Vivek not sure I understand your question.

Reply

MikeB May 9, 2012 at 10:10 am

Hi Joe,

Can you advise how we would track the progress of QCCR1J21554 please? I have logged into the HP support site and searched for this to no avail. I’m tryting to find out if there is an ETA for fixing this.

Cheers,
Mike.

Reply

Joe Colantonio May 9, 2012 at 11:36 am

MikeB » Hi Mike have your tried this:

1. Navigate to https://support.openview.hp.com/enhancement/do/main
2. Input desired ER number
3. Click on “Find Enhancement Request”
4. Select found document
5. (Optional) Sign/Register your profile to receive updates regarding such ER ticket, by clicking “E-mail me when this enhancement request is updated or resolved”

When I look it just says:
Customer symptom

QTP11 does not recognize IE9 Download Notification Bar; sees it as DirectUIHWND. The controls inside the navigation bar (SAVE/OPEN/CANCEL) are not recognized by QTP.

Customer resolution

Thank you for your response. We are planning to include this abilty in our next releases.

Reply

MikeB May 10, 2012 at 2:43 pm

Great Joe, that does indeed provide the info I was looking for. As this is not yet resolved by HP I have signed up for the email notification, so hopefully will be reolved soon. The workaround above does work, but I’m not so keen on coordinate based code!

Reply

Joe Colantonio May 10, 2012 at 3:09 pm

MikeB » Awesome! Hopefully the fix will be in their next patch.

Reply

yael ro June 12, 2012 at 12:38 pm

I work with QTP11, IE9 and i installs the petch.
I also have aproblem with The Download Notification Bar and i do you know when will HP give a petch for reolved it?
Thanks

Reply

Joe Colantonio June 13, 2012 at 5:12 pm

yael ro » The enhancement request for this is still open but it still does not provide a date when the enhancement will be available.

Reply

Brain June 14, 2012 at 5:56 pm

Hi Joe,

I have QTP 11 and IE 9. The problem is – Browser ().Navigation() function doesn’t work. Can QTPWEB_0078 patch help to solve this problem?
I’ll appreciate any advises
Thanks

Reply

Joe Colantonio June 20, 2012 at 9:10 pm

Brain » Hi Brian – I’m not sure – I don’t have a IE9 test machine setup yet so I can’t repro or verify this issue. If you are going to be testing IE9 you should install this patch anyway. Does using the following code work for you:

Set IE = CreateObject(“InternetExplorer.Application”)
IE.Visible = true
wait (1)
IE.Navigate “www.joecolantonio.com”

Reply

yael ro June 21, 2012 at 8:00 am

I need to do Save as in download notification bar . I clicked on save dropdown button by cordinates
but the opened small window doesn’t recognized in run Time.
How can I do Save as to download?
Thanks

Reply

Brain June 25, 2012 at 5:57 pm

I found out why Browser ().Navigation() did not work on QTP 11 – BHOManager Class add-on HP on IE9 was disabled. Once I enabled it – the problem was solved.

Reply

Joe Colantonio June 25, 2012 at 5:59 pm

Brain » Awesome – glad you found the resolution for this. Thanks for sharing the fix!

Reply

sri November 2, 2012 at 6:21 am

Hi Brain,

iam using IE-7 on QTP-11, even iam not able to navigate the IE to desired URL..can you please elobrate the way how to over come this issue by enabling the BHOManager class…

Thanks
Sri

Reply

Vijay June 21, 2012 at 5:23 pm

Hi,

I installed the patch but still the objects are not being recognized by QTP. Any resolution for this?

Thanks,
Vijay

Reply

Hari Prakash June 26, 2012 at 5:21 pm

Hi,

I have installed QTPWEB_0078.EXE, “Internet Explorer has Stop Working” issue has been resolved. Still i face few issues capturing the object via Object Repository. Note few objects can be identified by Record and playback method.

Kindly suggest a solution.

Thank you,
Hari Prakash K

Reply

Sandler July 20, 2012 at 8:05 pm

I’m unable to solve this…Please help.
getting the following error message
“The statement contains one or more invalid function arguments.”

Reply

Joe Colantonio July 20, 2012 at 8:15 pm

Sandler » When are you getting this error?

Reply

Sandler July 20, 2012 at 9:22 pm

Line (7): “Browser(“Creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”, “regexpwndclass:=DirectUIHWND”, “index:=0″).Click savebtnX, savebtnY,micLeftBtn”.

Reply

Joe Colantonio July 21, 2012 at 12:22 pm

Sandler » Did you type this line or did you copy it from the post? Based on what you sent me you need to remove ,micLeftBtn”. So the line of code should be:

Browser(“creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).Click savebtnX, savebtnY

Reply

Sandler July 24, 2012 at 6:33 pm

Thanks for your quick response Joe..I typed the entire thing and here is what I’m getting
“Object doesn’t support this property or method: ‘Browser(…).WinObject’
Line (8): “Browser(“creationtime:=0″).WinObject(“nativeclass:DirectUIHWND”,”regexpwndclass:=DirectUIHWND”,”index:=0″).Click savebtnX, savebtnY”.

*****************************
This is what I wrote
objWidth=WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).GetROProperty(“width”)
savebtnY=61
savebtnX=objWidth-100
If objWidth<329 Then
Browser("creationtime:=0").FullScreen
End If

Browser("creationtime:=0").WinObject("nativeclass:DirectUIHWND","regexpwndclass:=DirectUIHWND","index:=0").Click savebtnX, savebtnY

Reply

Sandler July 24, 2012 at 8:22 pm

Joe in my previous post I realized there was typo mistake (I missed the nativeclass:=”)

but when I tried with correct script it give me this error message

“The statement contains one or more invalid function arguments.

Line (8): “Browser(“Browser”).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”,”index:=0″).Click savebtnX, savebtnY”.”

Reply

Sandler July 27, 2012 at 7:26 pm

Please help
“The statement contains one or more invalid function arguments.

Line (8): “Browser(“Browser”).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”,”index:=0″).Click savebtnX, savebtnY”.”

Reply

Joe Colantonio July 27, 2012 at 7:41 pm

Sandler » Sorry – I don’t understand your issue. Didn’t you see my last response? Line 8 should look like this:

Browser(“creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).Click savebtnX, savebtnY

Why does your line of code have quotation marks around it and why is there a period in it – is that really what you have in QTP?

Reply

Rose August 2, 2012 at 8:13 pm

Hi Joe,

How do you test dropdown list using QTP?

Thanks,

Reply

Joe Colantonio August 6, 2012 at 1:44 pm

Rose » Depends on what technology you are testing. In QTP go to help and click on the ‘Index’ tab. Search for Select Method and choose what environment you are testing against to see some examples of interacting with dropdowns. Are you having a specific issue?

Reply

Rose August 6, 2012 at 8:51 pm

I am new to QTP. I know to record and enhance by inserting standard check points and parameterize. How can i use these skills to automate a website. How to approach to next level. I am in a situation where i need to automate a website asap.

Thanks in advance

Reply

Khushal September 27, 2012 at 9:00 am

Hi Joe,
I have QTP11 and IE9 on 2 of my Windows 7 machines. I have installed the patch “QTPWEB_00078″ on both. Now, when I run a batch with multiple test cases, it runs fine on one machine but on the other one, the system hangs after a couple of scripts. This generally occurs when QTP is opening a new script. I have to force a manual reboot to start the system. QTP freezes the windows 7 system completely. I checked for the issue online and some people have said that there is a problem with the QTPWEB_00078 patch. I don’t know if you have faced any such issue, but if you have then could you let me know if you found a solution. I have been struggling on this for days now. Thanks.

Reply

Joe Colantonio September 28, 2012 at 4:06 pm

Khushal » Are you using a function library? I know that there is a know issues (Hot fix QTP_00778) with random “QTP has stopped working” error messages on Win7 machines.

Reply

Benoit December 5, 2012 at 10:54 am

Hello,
I have the same problem.
I use QTP 11 on Windows 7 and IE9. At first it was not working with IE9 then I installed the patch QTPWEB_00078 and it works fine when I run the script from QC.
But since I installed this patch, when I want to perform any operation with QTP, windows 7 freezes completely.
I didn’t try to install the hot fix yet cause I don’t have access to the support right now but did it solve your problem Khushal?
Thank you.

Reply

David October 1, 2012 at 5:52 pm

Hi Joe, thanks greatly for posting all the links to the patches. I m having a probem unzipping the IE9 patch QTPWEB_00078. I downloaded the zip file from the http://www.joecolantonio.com/downloads/ but when i unzip it with the 7Zip it fails with message ‘Data Error…File is Broken’. So as expeced when i try running the generated file it doe snot work. Can you check update the file if its corrupted? Thanks!

Reply

Joe Colantonio October 1, 2012 at 6:22 pm

David » Sorry about that – I just changed my web host –hope that did not corrupt all my files in download. I uploaded the QTPWEB_00078 exe. Can you try again and let me know if it works for you?
http://www.joecolantonio.com/downloads/QTPWEB_00078.EXE

Reply

David October 1, 2012 at 8:33 pm

Yes all is fine now. Thanks a lot!

Reply

Lorena October 2, 2012 at 5:28 pm

Does QTP v11 support IE8. If so, do I need to run a patch/etc?

thx

Reply

Joe Colantonio October 3, 2012 at 2:30 pm

Lorena » Hi Lorena – Yes QTP11 support IE8 without a patch. Check put my QTP support matrix for more support info

Reply

ramesh October 17, 2012 at 5:14 am

Thank you sir,
intially i too face the same object identifying problems. after installing qtpweb0078 patch.it is working fine.
thank you verymuch………………

thanks&regards
Ramesh T

Reply

Sushma December 22, 2012 at 12:22 pm

I really solved my problem…Thanks a lot.

Reply

Tyler D January 25, 2013 at 9:43 pm

Fixed my problem. THANK YOU for throwing this out there!

Reply

Joe Colantonio January 29, 2013 at 12:12 pm

Tyler D » Thanks Tyler – glad it helped.

Reply

neelima January 29, 2013 at 9:31 pm

I downloaded the patch for internet explorer 9 and QTP 11. After that how should I practice QTP. I have no idea. Kindly help me. Thank you.

Reply

neelima January 30, 2013 at 3:44 am

AFter downloading the patch for QTP 11 IE 9 . I still have a problem showing run time error. can you give in detail how to unzip and install it.
Thank you

Reply

Dany Hoareau January 30, 2013 at 8:31 am

Hello Joe,

I’m french, sorry for my english. I begin to use QTP, 2 week ago. My configuration is QTP 11 + Win 7 + IE9. I install the patch QTPWEB_00078.EXE like you preconized.

Do you know if HP have done a new patch to detect the DirectUIHWND button ?

So, I saw your script behind :

objWidth = WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).GetROProperty(“width”)
savebtnY = 61
savebtnX = objWidth – 100
If objWidth < 329 Then
Browser(“creationtime:=0″).FullScreen ‘or rezise the browser window to show the appropriate coordinates are visible
End if

‘This will click the save dropdown button
‘Browser(“creationtime:=0″).WinObject(“nativeclass:=DirectUIHWND”,”regexpwndclass:=DirectUIHWND”, “index:=0″).Click savebtnX, savebtnY

Reply

Joe Colantonio February 3, 2013 at 1:07 pm

Dany Hoareau » Hi Dany – as far as I know this is still an open issue. I have not tried in UFT 11.5 to see if the behavior is the same – I will try and let you know.

Reply

Dany Hoareau March 12, 2013 at 2:44 pm

Hello Joe,

Thanks for your answer :) .

I have another probleme with DirectUIHWND’s object.

Sometimes, when I save a heavy’s XLS file, the downloading times is too long. I don’t know how I can wait the downloading times.

However, I see the message in DirectUIHWND object but it is not accessible. I could analyse this string to detect the end of the downloading.

I think this is an interesting point !

Reply

Viki March 14, 2013 at 9:01 am

I am Using IE9,Windows 7,QTP 11 Trial version:

Nothing gets record. you gave some patch to install, if i got HP site, it says unauthorized. from your link, it says HP made me remove it………….Is there any way that trail version to run on IE 9?

Reply

Joe Colantonio March 25, 2013 at 8:55 pm
Peter P March 27, 2013 at 10:33 am

I’ve just written to HP, criticizing their stance about not allowing open access to this critical software patch. Without it, you cannot even get past the first few steps of the tutorial.

I also told them they should have deal with you (Joe) in a friendlier manner, since in fact you’re maintaining a QTP enthusiast site which is beneficial to them.

If I get a response I will post it here.

Reply

Joe Colantonio March 29, 2013 at 4:53 pm

Peter P » Thanks Peter – You’re awesome!

Reply

Leave a Comment

{ 3 trackbacks }

Previous post:

Next post: