assertj-swing
assertj-swing copied to clipboard
Add support for Spanish
Issue by Gustavo Jimenez Hernandez from Wed, 2 Sep 2009 09:02:34 -0500 Originally opened as http://jira.codehaus.org/browse/FEST-220
When it try write in a combo box using JComboBoxFixture occur a IllegalArgumentException, the text that is writing in the component is: !#$%&()'?¿¡+*~[]{}^
this is the trace:
java.lang.IllegalArgumentException: Invalid key code '47'
at org.fest.swing.core.RobotEventGenerator.pressKey(RobotEventGenerator.java:118)
at org.fest.swing.core.BasicRobot.doPressKey(BasicRobot.java:597)
at org.fest.swing.core.BasicRobot.keyPressAndRelease(BasicRobot.java:582)
at org.fest.swing.core.BasicRobot.type(BasicRobot.java:553)
at org.fest.swing.core.BasicRobot.enterText(BasicRobot.java:536)
at org.fest.swing.driver.JComboBoxDriver.enterText(JComboBoxDriver.java:363)
at org.fest.swing.fixture.JComboBoxFixture.enterText(JComboBoxFixture.java:199)
I could seen that the text wrote in the component was: !#$%/)', at this moment the test fail
but also noted that changing the keyboard input language (Spanish to
English) when the test is running, the error does not reproduce.
votes (original issue): 1 watches (original issue): 1
Comment by alexruiz from Mon, 28 Dec 2009 01:43:39 -0600
Hi Gustavo,
Is the keyboard layout in Spanish? If that is the case, this issue can be considered a improvement, and not a bug, since we don't support Spanish locale yet.
If support for Spanish locale is what you need, I'm going to need some help testing, since I don't have a keyboard with Spanish layout.
Thanks!
Comment by codegus from Mon, 28 Dec 2009 10:31:56 -0600
Hi Alex,
Yes, the keyboard layout is in Spanish.
Yes, that's what I need, I'll help you gladly with the testing you need.
Greetings