I am executing the QTP scripts from Virtual mechine. QTP is not able to click on OK button of Window pop-up when VM is minimised.
below is the code
If Browser("name:=.*").Dialog("text:=Message from webpage","nativeclass:=#32770").Exist(50) Then
Browser("name:=.*").Dialog("text:=Message from webpage","nativeclass:=#32770").Activate
Browser("name:=.*").Dialog("text:=Message from webpage","nativeclass:=#32770").WinButton("text:=OK").Click
End If
Virtual mechine OS Is -- Microsoft Windows XP Professional
Can any one help me on this.