Micro Focus QTP (UFT) Forums
how can i automatically click ok button in msgbox popup - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how can i automatically click ok button in msgbox popup (/Thread-how-can-i-automatically-click-ok-button-in-msgbox-popup)

Pages: 1 2


RE: how can i automatically click ok button in msgbox popup - Ankesh - 12-26-2011

Datatable syntax will always remain same- Be it DP or using OR.

Request you to post the complete scenario.

Regards,
Ankesh


RE: how can i automatically click ok button in msgbox popup - akash warke - 07-12-2022

(09-13-2011, 12:57 PM)PrabhatN Wrote: Where do you get the popup from?
I mean does your code contain something like below:

Code:
Msgbox "Hello World"

If this is the case, the OK button can't be clicked automatically.

If it is not please try using:

Code:
Set WshShell = CreateObject("Wscript.Shell")
WshShell.Popup " Wait 5 seconds ", 5, "Title"

Hope it helps.