Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Read from Console in SWTBoT(Read from Console in SWTBoT)
Read from Console in SWTBoT [message #1007728] Thu, 07 February 2013 10:30
Mythri SG is currently offline 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 !!
Previous Topic:Getting the text from composite in eclipse using the SWTbot API
Next Topic:Eclipse Juno with jBoss AS 7
Goto Forum:
  


Current Time: Wed Sep 17 23:46:01 GMT 2014

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

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