Reputation: 388
I am not able to get the Id property for flex components in my flex application(swf file) using Test Object Inspector in Rft Tool.
How can i get them?
Upvotes: 1
Views: 437
Reputation: 30
If you have an id
property for your flex component then there are a couple of ways to find out the id
property of your desired control.
Make sure you have embeded your .swf
file inside an html wrapper(as suggetsed by RFT) and displaying it in an enabled IE browser.
Hover over the component, say a button(and you should see automation name as well as id
value).
Else you can do a simple script call to get the id of desired component:
System.out.println(desired_object().getProperty(".id"));
Upvotes: 0
Reputation: 12847
You can't. Flex mxml component ids are only used as a hash within the containing parent. They're only used for referencing objects and are discarded at compile time.
Upvotes: 1