Hi All,

I am facing one annoying issue regarding the FF browser. When I run my script in FF, QTP doesnít recognize OK and Cancel buttons in standard dialog windows. Well, it is possible to use SendKeys() function in order to close the dialog. I noticed that QTP is able to recognize the buttons sometimes. However, it seems to be as a QTP bug. QTP returns the following object hierarchy sometimes:

- creationtime = some number
- nativeclass = #32770
- text = something
- title = the same text as for Dialog object
- type = xul:button
- html tag = XUL:BUTTON
- class = dialog-button

Please, have you ever seen this weird object structure?

When I want to close the dialog, I use the following code. It is working properly. Please ignore the Wait and ReplayType statements. I use them because of our application implementation [img]/images/graemlins/smile.gif[/img] I use QTP 9.5; FF

'Click on the OK button
If strBrowserType = "FF" Then
Set objShell = CreateObject("WScript.Shell")
Browser("WebAdmin").Dialog("ConfirmDialog").Activa te
objShell.SendKeys "{ENTER}"
Set objShell = Nothing
Wait 5
Setting.WebPackage("ReplayType") = 2
Browser("WebAdmin").Dialog("ConfirmDialog").WinBut ton("OK").Click
Setting.WebPackage("ReplayType") = 1
Wait 5
End If