QTP11 & IE9 Patch (1751 Views)
Reply
Occasional Visitor
jipé
Posts: 2
Registered: ‎07-11-2012
Message 1 of 5 (1,751 Views)

QTP11 & IE9 Patch

Hi,

 

Can tou tell me when the request QCCR1J21554 will be resolved ?

 

 

Spoiler
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.

 

 

 Thanks

Please use plain text.
Advisor
SreeFmr
Posts: 23
Registered: ‎01-27-2012
Message 2 of 5 (1,726 Views)

Re: QTP11 & IE9 Patch

Hey, thats done. Get below 3 Add-ins depending on your need:

 

QTPWEB_00073 - Add Support for IE in Protected Mode

QTPWEB_00078 - Add Support for Internet Explorer 9

QTPWEB_00086 - Support for 64-bit IE Browsers

 

- Sree

Please use plain text.
Occasional Visitor
jipé
Posts: 2
Registered: ‎07-11-2012
Message 3 of 5 (1,698 Views)

Re: QTP11 & IE9 Patch

Hi

 

I installed these 3 add-ins plus QTP_00699 but QTP11 did still not recognize IE9 Download Bar. QTP sees it as "DirectUIHWND".  The controls inside the navigation bar (SAVE/OPEN/CANCEL) are not recognized by QTP.

 

QTP can click on these controls only with the position of the cursor,  so it can't click when the window's size is different.

 

Browser("IE9").WinObject("DirectUIHWND").Click 897,74

 

Another problem is that when QTP clicks on the CANCEL button for example, the initial window (IE9) looses the focus and QTP do anything. My solution is to focus on a button with some "TAB" control but it is fastidious :

 

Dim mySendKeys

Set mySendKeys = CreateObject("WScript.shell")

mySendKeys.SendKeys("{TAB}")

 

and then to press enter to click the button like this :

 

mySendKeys.SendKeys("~")

 

Thanks for your response.

Please use plain text.
Occasional Visitor
Johnjes
Posts: 1
Registered: ‎02-16-2009
Message 4 of 5 (495 Views)

Re: QTP11 & IE9 Patch

Use below code to download the file to Dowload folder

 

Browser("opentitle:=browsertitle").WinObject("nativeclass:=DirectUIHWND","Location:=0").Type micShiftDwn+micRAltDwn + "S"+micShiftUp+micRAltUP Browser("opentitle:=browsertitle").WinObject("nativeclass:=DirectUIHWND","Location:=0").Type micShiftDwn+micRAltDwn + "P"+micShiftUp+micRAltUP

 

Thanks,John

Please use plain text.
HP Expert
Ana_Noncheva
Posts: 245
Registered: ‎08-06-2013
Message 5 of 5 (481 Views)

Re: QTP11 & IE9 Patch

Hello,

 

No, this has not been fixed in QTP 11.

According to RnD, the download bar uses a new windowless technology in IE 9 and this is why QTP is not able to properly identify it.

 

However, UFT 11.5* does support it.

 

For QTP 11, you can also use following workaround with descriptive programming, provided in this article: 

What are the considerations and limitations when working with Internet Explorer (IE)?

 

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

 Note: This code is provided as is bases and as an example only. It’s not part of QuickTest Professional and not supported by HP.

 

Regards,

Ana

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
Please use plain text.
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