Forum Discussion

rikkilar's avatar
rikkilar
Occasional Contributor
15 years ago

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


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






1 Reply

  • Hi Rikki,



    Native Flex object properties are accessible through the FlexObject property, so you need to use the FlexObject.id notation to refer to the native id property:



    Does it work for you this way?