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 first one is the slowest.
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}");
Due to execution speed I would like to use the last of the three options. When looking at replay it seems the values are filled in but somehow they are not properly propagated behind the scenes as I get an error message telling me that I'm not allowed to save a null value...
Any ideas or best practices?
Thanks
Andreas