Forum Discussion
Lalit,
How do you check the state of the button? If you invoke the dialog and then switch to the Object Browser panel at design time, or if you check the button state in the Evaluation dialog at run time, most likely, TestComplete's window overlaps the dialog box and the button becomes "hidden". You can insert the following code statement into your script to check the property value:
...
value = iexplore.dlgFileDownload.btnSave.VisibleOnScreen
Call Log.Message("VisibleOnScreen = " + aqConvert.VarToStr(value))
...
Btw, on my computer, I failed to reproduce the problem you had described. Everything worked fine (the test script clicked the button). I've heard that the behavior of the File Download dialog has some specifics on some operating systems: the Save button appears disabled for some time after the dialog becomes visible. So, I'd suggest that you use code statements that will wait until the button becomes enabled, something like --
...
' Waits for 15 seconds or less, until the Enabled property becomes true
If Not button.WaitProperty("Enabled", true, 15000) Then
' Enabled is False
Log.Error "The button is disabled!"
Else
' The button is enabled.
' Simulate clicks
...
End If
...
Also, I'm using TestComplete 8.60. You can download it and check if the problem exists or not.