Yes I am using the correct title for dialog window.
I guess the problem is, when the dialog window opens it shows up it as another QTP instance I mean if you look at Window's taskbar you will find two QTP instance one for the actual QTP screen where the screen is running and other is for dialog window.
I am not able to put debug point as when this dialog box displays i am not able to access the QTP script window at all. I guess for dialog window it should show up as another IE instance rather than it shows up as another QTP instance.
Something is weird going on otherwise I should be able to access the QTP window when this dialog box shows up. I dont know why this dialog window is tightly coupled with
QTP ? while it should be with browser.
try using the regexpwndtitle property as shown below
If (Browser("Creationtime:=1").Dialog("regexpwndtitle :=Enter Network Password").Exist(2))Then
Browser("Creationtime:=1").Dialog("regexpwndtitle: =Enter Network Password").WinButton("regexpwndtitle:=OK").Click
it worked for me .
i got this from this forum long back when i was searching for clicking dialog window