我正在尝试获取.Net应用程序中对象的运行时属性。 .Net Windows窗体间谍将DataType
属性值显示为Double
,但是在调试器中进行验证时,它会将值显示为“对象引用”
我尝试检查其他.Net属性,它们显示的很好,这意味着它们显示在.Net Windows窗体间谍中。
if(eachElement.getROProperty("DateTimeInput") = "True") Then
eachElement.Object.Text = RandomDate("01/01/2018", "12/31/2020")
print "Selecting Date " & eachElement.getRoProperty("Name") & " as " & eachElement.getRoProperty("Text")
ElseIf (eachElement.getROProperty("DataType") = "String") Then
eachElement.Type "Blah Blah"
print "Typing in String field " & eachElement.getRoProperty("Name") & " as " & eachElement.getRoProperty("Text")
ElseIf (eachElement.getROProperty("DataType") = "Double") Then
eachElement.Type "52.25"
print "Typing in Double field " & eachElement.getRoProperty("Name") & " as " & eachElement.getRoProperty("Text")
End if
预期的ro属性DataType
-Double
,实际的ro属性-对象引用