Read from Console in SWTBoT [message #1007728] |
Thu, 07 February 2013 10:30 |
Mythri SG Messages: 2 Registered: February 2013 |
Junior Member |
|
|
Hi,
I m new to SWTBoT. I am trying to read from console with below code;
SWTBotView view = bot.viewByTitle("Console");
Widget consoleViewComposite = view.getWidget();
StyledText console = (StyledText) bot.widget(instanceOf(StyledText.class), consoleViewComposite);
SWTBotStyledText styledText = new SWTBotStyledText(console);
But am getting below compilation error;
Bound mismatch: The generic method widget(Matcher<T>, Widget) of type SWTBotFactory is not applicable for the arguments (Matcher<Object>, Widget). The inferred type Object is not a valid substitute for the bounded parameter
<T extends Widget>
Please help me !!
|
|
|
Powered by
FUDForum. Page generated in 0.03724 seconds