JComboBoxFixture.enterText(String) is ignoring the first character entered when the first character is a number (also includes some symbols).
The test case attached has two tests that replicate the problem.
Description
JComboBoxFixture.enterText(String) is ignoring the first character entered when the first character is a number (also includes some symbols).
The test case attached has two tests that replicate the problem.
Steve added a comment - 17/Mar/09 07:54 PM Work around it to enter text into the text field (via fixture) rather than directly in the combo box fixture:
JTextField textField = (JTextField) fixture.component().getEditor().getEditorComponent();
JTextComponentFixture textFixture = new JTextComponentFixture(robot, textField);
textFixture.enterText("20");
The bug is fixed. I'd like to add you to the list of contributors. If you agree, please send me your full name and optionally, a link to your blog or personal web page to alex.ruiz.05 at gmail.com
Alex Ruiz added a comment - 27/Mar/09 07:14 PM Hi Steve,
The bug is fixed. I'd like to add you to the list of contributors. If you agree, please send me your full name and optionally, a link to your blog or personal web page to alex.ruiz.05 at gmail.com
Thanks a lot for your help!
-Alex
Steve added a comment - 29/Mar/09 06:09 PM Good job Alex. I am happy to be added to the list of contributors, my full name is Stephen Neal. Keep up the good work.
Work around it to enter text into the text field (via fixture) rather than directly in the combo box fixture:
JTextField textField = (JTextField) fixture.component().getEditor().getEditorComponent();
JTextComponentFixture textFixture = new JTextComponentFixture(robot, textField);
textFixture.enterText("20");