Benjamin Glaser wrote:
> Good morning,
> I want to use SWTBot to write all the tests for our Eclipse RCP
> Now I got a problem with an widget that is used in the application.
> It's the Nebula FormattedText widget.
> The application uses a lot of these textfields.
> If I use the setText() methode on a formattedText (as seen below)
> bot.textWithId("key", "value").setText("65451,4545");
> it only sets the text until the comma ("65451") the rest is ignored.
> Mabye the problem is the Formatter the application uses for this textfield.
> But if I type the same text into the formattedText widget by hand, it's
> all fine.
> Is there a possibility to get it working?
Have you tried using the typeText(String) method? This one emulates
real user input by sending OS event. The only drawback is that it only
supports (for now) a standard US keyboard.
If you plan on trying it, I suggest you set