Micro Focus QTP (UFT) Forums
Handling pop-up message - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Handling pop-up message (/Thread-Handling-pop-up-message)



Handling pop-up message - linhke - 06-16-2010

Hi all,

Pls see the attatched image. When minimizing the Remote Desktop, QTP can not click OK button on the message.
Can anybody tell me the solution pls?

Thanks and BRs,
linhke


RE: Handling pop-up message - Saket - 06-16-2010

well my advise would be not to take rdp of the machine where QTP is running, you will face many issues due to that. If you really want to have a look on the machine when QTP is doing its job, better use VNC, It comes with a free version also and best to use to identify the progress of QTP script execution on test machines.


RE: Handling pop-up message - linhke - 06-17-2010

Many thanks for the best solution Saket Smile


RE: Handling pop-up message - linhke - 07-08-2010

Hi Saket,

Now, when i use VNC, have an error happen when running QTP (PURE VIRTUAL FUNCTION CALL). If i set full-screen for the remote PC, this will not happen.
Could you give me an advise pls?

Thanks,
linhke


RE: Handling pop-up message - Saket - 07-09-2010

See if this patch helps you - http://support.openview.hp.com/selfsolve/document/KM747306


RE: Handling pop-up message - Arun Prakash - 07-10-2010

Hi linhke,

Don't minimize the Remote Desktop, click on restore after that try to click some application in ur machine.
Execution will happen smoothly.
I belive this will solve your problem.


RE: Handling pop-up message - nmnehamathur - 07-12-2010

Hi,
In my application (windows) all the popup are having same property description. So I am planning to create a function that handles all the popups.( clicks on OK button)
As the parents of the pop ups are differrent, I am unable to write the code. Like

1)
Code:
SwfWindow("Phoenix").SwfWindow("Generic Message Box1").SwfButton("OK").Click
2)
Code:
swfwindow("Notional Availability").SwfWindow("Generic Message Box1").SwfButton("OK").Click
It would be of great help if anyone can suggest me the solution.


RE: Handling pop-up message - Arun Prakash - 07-12-2010

Hi,

Code:
Public Function cfn_ClickPopup(strparentsText)
    SwfWindow("text:="&strparentsText).SwfWindow("text:=Generic Message Box1").SwfButton("text:=OK").Click
End Function
use the similar function ...

has your query finds answer in this?


RE: Handling pop-up message - sasmitakumari - 07-13-2010

Hi,
Try this.
Code:
Set objParentWin = SwfWindow("Phoenix")
ClickOkInPopUp(objParentWin)

Function ClickOkInPopUp(pObjParentWin)

   pObjParentWin.SwfWindow("Generic Message Box1").SwfButton("OK").Click

End Function