Skip to main content



      Home
Home » Eclipse Projects » SWTBot » typeText not accepting typeText ("\"\");
typeText not accepting typeText ("\"\"); [message #485174] Thu, 10 September 2009 13:29 Go to next message
Eclipse UserFriend
typeText not accepting typeText ("\"\"); It will not input anything into
the editor. Also I noticed typeText ("\'"); inputs a space and not a
single quote.

I am on the current version of SWTBot for Ganymede.

Thanks
Jeremy
Re: typeText not accepting typeText ("\"\"); [message #485175 is a reply to message #485174] Thu, 10 September 2009 13:30 Go to previous messageGo to next message
Eclipse UserFriend
Sorry title was suppose to be typeText ("\"");
Re: typeText not accepting typeText ("\"\"); [message #485182 is a reply to message #485175] Thu, 10 September 2009 14:09 Go to previous messageGo to next message
Eclipse UserFriend
It is the Java platfrom that handles the escape sequence when creating
strings.
String foo = "\"";
String bar = "\'";
String foobar = "'";

foo will contain the " string
bar will contain the ' string
foobar will contain the ' string

so, if typeText can't type the text, it is probably a misconfiguration of
the keyboard strategy/SWTBot's keyboard layout/native keyboard layout.

So:
What is the keyboard layout you use when you type? Standard US? All other
layout are not supported (see bug #280562).
What is your keyboard strategy? The default one is AWTKeyboardStrategy.
What is your SWTBot's keyboard layout? By default, SWTBot tries to guess
it based on the language of your OS and stores it in
SWTBotPreferences#KEYBOARD_LAYOUT.
Re: typeText not accepting typeText ("\"\"); [message #485662 is a reply to message #485182] Mon, 14 September 2009 07:46 Go to previous message
Eclipse UserFriend
I am using a standard US Keyboard layout. Also SWTBot is correctly
recognizing the keyboard layout. Also in the console when I am running my
test I can see it state that it is typing "text within quotes" but the
quotes will not appear in the editor window.
Previous Topic:Main arguments for plugins tests
Next Topic:Using "Headless Testing Framework" feature in a product
Goto Forum:
  


Current Time: Tue Jun 24 08:47:18 EDT 2025

Powered by FUDForum. Page generated in 0.06236 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top