rikkilar
15 years agoOccasional Contributor
how to use findchild for flex object properties
1)I am using flashInjector and able to spy flex object properities and values
2)But unable to identify object using the flex object property and value with findchild method during runtime,if I replace with basic properties other than flex I am able to identify object.
Please let me know where I am doing wrong
Below is the code
Test1
2)But unable to identify object using the flex object property and value with findchild method during runtime,if I replace with basic properties other than flex I am able to identify object.
Please let me know where I am doing wrong
Below is the code
Sub Test1
Test1
' Creates arrays of property names and values
PropArray = Array("id")
ValuesArray = Array("txtUser")
' Searches for the window
Set p = Sys.Process("iexplore",2).Page("*")
Set w = p.FindChild(PropArray, ValuesArray, 40)
' Processes the search results
If w.Exists Then
w.Keys("imsss")
Else
Log.Error "The object was not found.
end if
End Sub