Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: FEST-Swing 1.2a3
-
Fix Version/s: None
-
Component/s: Swing
-
Labels:None
-
Environment:window xp profesional version 2002 service pack 3
Keyboard input lenguage default: spanish, option to change it to english
-
Number of attachments :
Description
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.
Issue Links
- depends upon
-
FEST-315
Load keyboard mappings from text files
-
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!