Assigning a variable based off app's current state
Enabled is set to True in the Object Repository. When the script gets to var = VbWindow("frmSubMaint").VbButton("Delete").GetROProperty("Enabled") .. The script crashes and says it cannot identify the Object "Delete" (Please see attachment).
Any suggestions?
VbWindow("frmSubMaint").Activate
var = VbWindow("frmSubMaint").VbButton("Delete").GetTOProperty("Enabled")
Do until var = False
VbWindow("frmSubMaint").VbButton("Delete").Click
VbWindow("frmSubMaint").Dialog("Delete Routine").WinButton("Yes").Click
Wait 65
var = VbWindow("frmSubMaint").VbButton("Delete").GetROProperty("Enabled")
Loop
Re: Assigning a variable based off app's current state
Does it crash in the loop or before the loop starts?
VbWindow("frmSubMaint").Activate
var = VbWindow("frmSubMaint").VbButton("Delete").GetTOProperty("Enabled") (here?)
Do until var = False
VbWindow("frmSubMaint").VbButton("Delete").Click
VbWindow("frmSubMaint").Dialog("Delete Routine").WinButton("Yes").Click
Wait 65
var = VbWindow("frmSubMaint").VbButton("Delete").GetROProperty("Enabled") (or here?)