kflood
4 years agoOccasional Contributor
Issue with WaitWPFObject syntax
Hello,
I'm trying to check if an object exists. I unfortuently keep getting a False when I know its present. Here is the code I'm attempting to use:
wpf = 'WPFObject("DataGridRow", "", ' + str(z) + ')'
obj = dataGrid.WaitWPFObject(wpf,1000)
if obj.Exists is True:
#what I'd like to do because it should be true
I've confirmed dataGrid is accurate and the z is a loop variable. It fails at 1. In debug mode I confirmed that wpf becomes 'WPFObject("DataGridRow", "", 1)' and the object name is WPFObject("DataGridRow", "", 1) according to object spy. It looks like it's trying to add backslashes in the name.
Am I making a mistake with the syntax here? The language is python.
Thank you,
Kyle