Micro Focus QTP (UFT) Forums
Dialog Box opens in run mode. - 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: Dialog Box opens in run mode. (/Thread-Dialog-Box-opens-in-run-mode)



Dialog Box opens in run mode. - Uma - 06-15-2011

Hi,
I got a solution for my previous thread "Object is disabled", I enabled the object using wait(5) command before click statement in the Expertview code.
Rightnow I am getting a different issue.
While I am running I am getting windows dialog box- "please enter city".
This dialog box is coming the following situation
1.Some times the values are coming from the datatable and it is suddenly disappears-At that time I am getting this dialog box,but there is no error
So I need to click ok.But that didn't come while I am recording.
Is it normal?
Thanks
Uma


RE: Dialog Box opens in run mode. - rajpes - 07-05-2011

Quote:.Some times the values are coming from the datatable and it is suddenly disappears-At that time I am getting this dialog box,but there is no error
So I need to click ok.But that didn't come while I am recording

Since you are not sure when that dialog box pops up, just add that dialog into object repos and handle it in the script as
Code:
if dialog("dlgName").Exist(1)
'handle it like pressing ok button inside  it
end if