10-17-2009, 03:08 AM
Hello,
I am opening an excel and changing a value. When I change the value I get a dialog box(based on validations)
Code
The dialog box has focus but QTP is unable to click on the OK button. It doesn’t know the dialog exists. After I click OK manually everything runs fine.
Any suggestions?
Thanks,
Raj
I am opening an excel and changing a value. When I change the value I get a dialog box(based on validations)
Code
Code:
Set objWorksheet1 = objWorkbook.Worksheets(2)
objWorksheet1.Cells(3,2) = "Oak"
Window("BM_269.xlsm").Dialog("Microsoft Excel").WinButton("OK").Click
The dialog box has focus but QTP is unable to click on the OK button. It doesn’t know the dialog exists. After I click OK manually everything runs fine.
Any suggestions?
Thanks,
Raj