I am trying to automatically select a combo box list item in my test of a flash swf.
The swf was developed with Flash Professional 5.5.
When I recorded the Mouse action of clicking the list item, the repository item which received the click event was:
list/element/element/listitem[1]/text[@caption='Female']
I would like to have the selected or clicked list item be a variable in my test.
I have tried to do this various ways to no avail.
Can anyone tell me how to do this?
Ranorex 3.1: Flash ComboBox
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Ranorex 3.1: Flash ComboBox
Hi,
therefore please have a look at following chapter of our user guide:
Using Variables within the Repository
Regards,
Tobias
Support Team
therefore please have a look at following chapter of our user guide:
Using Variables within the Repository
Regards,
Tobias
Support Team
Re: Ranorex 3.1: Flash ComboBox
I have, perhaps I am missing something.
I tried changing the path to list/element/element/listitem and then making the listitem object's properties variable.
In the path editor the listitem has 5 properties: Index, index, text, image and selected. The property Index with a capital i can't be set to a variable from the path editor.
Unfortunately I was only able to get the correct behavior by altering that value.
i.e. changing the path of the list item to list/element/element/listitem[2] would cause the mouse to click on the 2nd index in the dropdown list. But list/element/element/listitem[@index='2'] would not.
I tried changing the path to list/element/element/listitem and then making the listitem object's properties variable.
In the path editor the listitem has 5 properties: Index, index, text, image and selected. The property Index with a capital i can't be set to a variable from the path editor.
Unfortunately I was only able to get the correct behavior by altering that value.
i.e. changing the path of the list item to list/element/element/listitem[2] would cause the mouse to click on the 2nd index in the dropdown list. But list/element/element/listitem[@index='2'] would not.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Ranorex 3.1: Flash ComboBox
Hi,
Which version of Ranorex do you have installed?
If you have an older version than 3.1 please update to the new one.
Can you send us your project or a Snapshot of the element?
Can you set other attributes to variables, like the text?
"index" is a "real" attribute which you can set in your code and with "[2]" you select that item that is on the second place in the visualized list.
Regards,
Markus
Ranorex Support Team
Which version of Ranorex do you have installed?
If you have an older version than 3.1 please update to the new one.
Since the properties are case insensitive there should not be an Index with a capital letter, or there should not be any differences to the index with no capital letter.The property Index with a capital i can't be set to a variable from the path editor.
Can you send us your project or a Snapshot of the element?
Can you set other attributes to variables, like the text?
This is because [2] is not the same as @index='2'.i.e. changing the path of the list item to list/element/element/listitem[2] would cause the mouse to click on the 2nd index in the dropdown list. But list/element/element/listitem[@index='2'] would not.
"index" is a "real" attribute which you can set in your code and with "[2]" you select that item that is on the second place in the visualized list.
Regards,
Markus
Ranorex Support Team