Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Jeremy  is currently offline Jeremy
Messages: 10
Registered: July 2009
Junior Member
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
Jeremy  is currently offline Jeremy
Messages: 10
Registered: July 2009
Junior Member
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
Pascal G is currently offline Pascal G
Messages: 157
Registered: July 2009
Senior Member
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
Jeremy  is currently offline Jeremy
Messages: 10
Registered: July 2009
Junior Member
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: Mon Apr 21 08:55:43 EDT 2014

Powered by FUDForum. Page generated in 0.07613 seconds