Forum Discussion
mes6073
10 years agoContributor
So first ask yourself what is/are the conditions that prevent the required state from occuring then create code to handle those conditions. I suggest making the single line statement into a process loop or add a wrapper function that either returns the required object instance or empty if the property fails:
for (var i = 0; i < 10; i++) { var r = cellObj.WaitProperty("IsInEditMode", false, 999) if (r.Exists) // continue test code or add code to escape loop; }