<font class="small">Code:</font><hr /><pre>
Set objBrowser_Blank = Description.Create()
objBrowser_Blank("micclass").value = "Browser"
objBrowser_Blank("name").value = "LEX"
Set objDialog_Blank = Description.Create()
objDialog_Blank("micclass").value = "Dialog"
objDialog_Blank("regexpwndtitle").value = "Windows Internet Explorer"
Set objButton_Blank = Description.Create()
objButton_Blank("micclass").value = "WinButton"
objButton_Blank("regexpwndtitle").value = "OK"
If Browser(objBrowser_Blank).Dialog(objDialog_Blank). Exist Then
Blank = "True"
Blank = "False"
This is the code iam using and i have matched all the properties they are correct but don't know why its not working it was working perfectly fine in qtp 9.2.
Thanx i did everything.....then i just removed the browser part and used this line in if part
Dialog(objDialog_Blank).Exist and its working perfectly fine..dontknow whats the issue bcoz in when i do spy its showing the following hierarchy...Browser ->Dialog -> WinButton..
can anyone explain why this is happening although the above code was working fine in qtp 9.2
its giving problemin qtp 10.