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