Hi Patrick Thanks for your reply. I'm afraid my problems aren't locale- nor focus-related, unfortunately.
In X11, AWTKeyboardStrategy works great for me. I've never needed to even consider other strategy there. Wayland is not so cozy: 1. AWTKeyboardStrategy doesn't pass its initialization 2. SWTKeyboardStrategy doesn't allow me to type lowercase letters 3. MockKeyboardStrategy doesn't want to press special keys 2 and 3 aren't Wayland specific, I can see the same in X11 (unless I'm holding them wrong :-) For all the three problems I created bug reports ([1], [2], [3]). I guess it would be better to discuss the specifics there. I'd be happy to have at least one of the strategies fixed so I can use it for testing in Wayland. My wild guess is that SWTKeyboardStrategy might be easiest. Any thoughts? Thanks Václav [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=549678 [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=549679 [3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=549680 ----- Original Message ----- > Hi Vaclav, > > In our project we mostly use AWTKeyboardStrategy (but not in Wayland). > > Be careful that the right control has focus when you use the keyboard. It's > better to use AbstractSWTBot.pressShortcut() instead of > Keyboard.pressShortcut(), because the former will first set focus on the > widget. > > We also add this to all our tests to be independent of user locale: > > SWTBotPreferences.KEYBOARD_LAYOUT = "EN_US"; > > Hope this helps, if you find anything that solves your issue, please share > the information! > > Patrick > > > On Tue, Jul 30, 2019 at 4:07 AM Vaclav Kadlcik < vkadl...@redhat.com > wrote: > > > Hello > > None of the three keyboard strategies listed in [1] > works well for me in Wayland (Linux/x86_64). Before > I go into details or file bugreports, does anyone > have any experience or recommendation on the subject? > > Thanks in advance > Vaclav > > > [1] https://wiki.eclipse.org/SWTBot/Keyboard_Layouts#Keyboard_strategies > _______________________________________________ > swtbot-dev mailing list > swtbot-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://www.eclipse.org/mailman/listinfo/swtbot-dev > > _______________________________________________ > swtbot-dev mailing list > swtbot-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://www.eclipse.org/mailman/listinfo/swtbot-dev _______________________________________________ swtbot-dev mailing list swtbot-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/swtbot-dev