![]() |
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
|
how can i automatically click ok button in msgbox popup - test - 09-13-2011 ![]() RE: how can i automatically click ok button in msgbox popup - PrabhatN - 09-13-2011 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") Hope it helps. RE: how can i automatically click ok button in msgbox popup - test - 09-13-2011 hello Prabhat this is my case.. for i = 1 to 3 msgbox "hello Prabhat" next now i want to automatic click in this popup when it show hello prabhat in msgbox. is it possible? thanx in advance Regards, Ajay RE: how can i automatically click ok button in msgbox popup - Ankesh - 09-13-2011 Hi Ajay, As per my knowledge its not possible, but you can create the MsgBox with time limit. use below code Code: For i=0 to 3 Regards, Ankesh This is the alternate solution.... Istead of writing like msgbox "Hello" , u can just write ur text in the variable like msgbox_message="Your Text" if you are using the above code.. This would serve ur purpose. Do let me know if u have a query. Regards, Ankesh RE: how can i automatically click ok button in msgbox popup - test - 09-14-2011 Hi Ankesh thanx for this, its working dear, but i have one problem in that hope u notice that prblm is that in this script loop is not working i mean to say popup ll come only one's times but loop is from 1 to 3.....please check it.... thanks, Ajay RE: how can i automatically click ok button in msgbox popup - Ankesh - 09-14-2011 @Ajay, the code is working absolutly fine. I chkd it. I request you to plz re-execute the code. RE: how can i automatically click ok button in msgbox popup - test - 09-14-2011 Hey Ankesh It is working thanx dear Thanks, Ajay how we can print data table value in Msgbox popup - test - 12-23-2011 Hello, Please Check this script. Collapse | Copy Code Code: Dim ak I just want to print data table value in Msgbox like Column name "A". Thanks, Ajay Kumar Software Test Engineer RE: how can i automatically click ok button in msgbox popup - Ankesh - 12-26-2011 Code: For i = 1 to 3 Try the above for loop.. It will work. Regards, Ankesh RE: how can i automatically click ok button in msgbox popup - test - 12-26-2011 Thanks Ankesh, It is working fine. can you please tell me any script for descriptive programming in which we used data table. Thanks, A.k |