I try to find the best way to select values in a Flex Combo Box. There are 3 different ways I have identified:
- Opening the combo box and selecting the appropriate value (including scrolling) using the mouse.
- Filling the text to the text field part using the keyboard
- Setting the text using
Code: Select all
combobox.TextValue=text;
The second one is slow too, because I have to reduce replay speed since the keyboard inputs interfere with the auto completion functionality of the combo box. Additionally I have to take care of default text that might be present in the combo box which results in code like this:
Code: Select all
combobox.PressKeys("{LControlKey down}{Akey down}{LControlKey up}" + text + "{ENTER}");
Any ideas or best practices?
Thanks
Andreas