lcarbonn/robotframework-eclipselibrary

SWTBot Pressshortcut support

Closed this issue · 5 comments

Add support to Pressshortcut methods from SWTBot.
It deals with keyboard layout that launch an exception at the moment.

 - keyboard layout for text typing (ie: type text in combo)
"Caused by: java.lang.IllegalArgumentException: FR_FR.keyboard not found, see 
http://wiki.eclipse.org/SWTBot/Keyboard_Lay
outs for more information.
        at org.eclipse.swtbot.swt.finder.keyboard.KeyboardLayout.getKeyboardLayout(KeyboardLayout.java:89)
        at org.eclipse.swtbot.swt.finder.keyboard.KeyboardLayout.getDefaultKeyboardLayout(KeyboardLayout.java:75)
        at org.eclipse.swtbot.swt.finder.keyboard.Keystrokes.<clinit>(Keystrokes.java:110)"

Original issue reported on code.google.com by laurent.carbonnaux on 9 Dec 2010 at 8:41

Hi Laurent and thanks for your development,
I'm using robotframework-eclipselibrary for one of our common customer ;) and 
we need this feature for TDD and TNR.
When this feature will be available ?
Thanks by advance.

Original comment by pj.char...@gmail.com on 11 Jul 2011 at 6:59

  • Added labels: ****
  • Removed labels: ****
Hi pj...
I need to investigate further.
I have a problem with the keyboard layout, even with normal SWTBot.
If you have any information on using keyboard layout, you can mail me directly.


Original comment by laurent.carbonnaux on 12 Jul 2011 at 7:30

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****
Hi P-J,
Problem with keyboard layout is partially resolved, at least a workaround have 
been found.
The pressShortcut methods will be available in 0.16 version soon (end of the 
week).

Original comment by laurent.carbonnaux on 18 Jul 2011 at 8:20

  • Changed state: Started
  • Added labels: ****
  • Removed labels: ****

Original comment by laurent.carbonnaux on 19 Jul 2011 at 4:54

  • Changed state: Done
  • Added labels: ****
  • Removed labels: ****
Keyboard layout for FR_FR has been delivered to SWTBot.
Unfortunatly, I am not able to use it under Eclipse, since the file is loaded 
out from the swt signed jar. And only EN_US keyboard layout can be used.
So the workaround is to force the usage of EN_US keyboard in your test suites :
| Set SWTBotPreferences KEYBOARD_LAYOUT | EN_US |




Original comment by laurent.carbonnaux on 4 Sep 2011 at 3:24

  • Added labels: ****
  • Removed labels: ****