Re: QTP 11 does not identify Windows popup in Chrome (722 Views)
Reply
Occasional Contributor
Vinod_Nag
Posts: 8
Registered: ‎08-19-2013
Message 1 of 5 (772 Views)

QTP 11 does not identify Windows popup in Chrome

Hi ,

 

I am using QTP11 + Chrome 24 + Win7 ,  I have installed all the recommended patches from HP and i am successfull in identifying the objects within my application.

 

I have a problem in the windows authentication pop-up to open up my application - QTP is not identifying it and it is identified as Winobject (Please find the attached screen shot for the pop-up)

 

Can anyone help ?

HP Expert
vzamoraz
Posts: 502
Registered: ‎04-12-2012
Message 2 of 5 (754 Views)

Re: QTP 11 does not identify Windows popup in Chrome

Hello Vinod,

 

      There is no recoding support for Google chrome so is expected that QTP see a native chrome pop up as a winobject.

      What you can try is device replay and send keys in order to interact with that control.

      Example: 

 

      'Get the top left corner  position on screen of the Dialog control

      myx = Winobject("dialog").getROproperty("abs_x")
      myy = Winobject("dialog").getROproperty("abs_y")

      'start device replay object
      set DeviceReplay = CreateObject("Mercury.DeviceReplay")

      'click on user name textbox using the corner position of dialog control and adding some pixels to calculate textbox position
      DeviceReplay.MouseClick myx +100,myy +200,0

      'type the user name

      DeviceReplay.SendString(“username string here”)

      'click on password textbox using the corner position of dialog control and adding some pixels to calculate textbox position

      DeviceReplay.MouseClick myx +100,myy +250,0

      'type password

      DeviceReplay.SendString(“password string here”)

      'click on Login button using the corner position of dialog control and adding some pixels to calculate button position

      DeviceReplay.MouseClick myx +300,myy +500,0

      set DeviceReplay = nothing        

 

 

     Note: device replay works with screen resolution pixels so What I made is just a  sample of coordinates, you can use it to check what would be the right amount you need to add in order to perform click on the right point.

Occasional Contributor
Vinod_Nag
Posts: 8
Registered: ‎08-19-2013
Message 3 of 5 (739 Views)

Re: QTP 11 does not identify Windows popup in Chrome

Thanks

 

Regular Advisor
HaiTNguyen
Posts: 105
Registered: ‎11-29-2011
Message 4 of 5 (734 Views)

Re: QTP 11 does not identify Windows popup in Chrome

Sorry, UFT 11.52 still doesn't support recording on Chrome.

Occasional Contributor
Vinod_Nag
Posts: 8
Registered: ‎08-19-2013
Message 5 of 5 (722 Views)

Re: QTP 11 does not identify Windows popup in Chrome

Thanks for clarifying

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.