Skip to main content



      Home
Home » Eclipse Projects » SWTBot » How to find the matches in Build Console View
How to find the matches in Build Console View [message #508463] Mon, 18 January 2010 20:30 Go to next message
Eclipse UserFriend
Hi, experts:

I am a beginner of swtbot, I want to check the contents in Build Console, but it failed to find Widget of BuildConsole. Can you please help me? Very appreciated.


SWTBotView BuildConsole = bot.viewByTitle("Build Console");
BuildConsole.show();
SWTBotText text = new SWTBotText(bot.widget(WidgetOfType.widgetOfType(Text.class), BuildConsole.getWidget()));
Re: How to find the matches in Build Console View [message #508483 is a reply to message #508463] Tue, 19 January 2010 02:13 Go to previous messageGo to next message
Eclipse UserFriend
I have got the correct result by using
SWTBotStyledText text = new SWTBotStyledText(bot.widget(WidgetOfType.widgetOfType(Styled Text.class), BuildConsole.getWidget()));

Thanks
Re: How to find the matches in Build Console View [message #508542 is a reply to message #508463] Tue, 19 January 2010 06:42 Go to previous message
Eclipse UserFriend
// Get the view
SWTBotView buildConsoleView = bot.viewByTitle("Build Console");

// Get a bot scoped to the view. This will only find stuff within the view.
SWTBot bot = buildConsoleView.bot();

-- Ketan

On 1/18/10 5:30 PM, Bill wrote:
> Hi, experts:
>
> I am a beginner of swtbot, I want to check the contents in Build
> Console, but it failed to find Widget of BuildConsole. Can you please
> help me? Very appreciated.
>
>
> SWTBotView BuildConsole = bot.viewByTitle("Build Console");
> BuildConsole.show();
> SWTBotText text = new
> SWTBotText(bot.widget(WidgetOfType.widgetOfType(Text.class),
> BuildConsole.getWidget()));
Previous Topic:Getting Teststeps from swtbot
Next Topic:SWTBot launch error
Goto Forum:
  


Current Time: Tue Jul 22 18:23:22 EDT 2025

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

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

Back to the top