Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Tue, 19 January 2010 01:30 Go to next message
Bill  is currently offline Bill Friend
Messages: 3
Registered: December 2009
Junior Member
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 07:13 Go to previous messageGo to next message
Bill  is currently offline Bill Friend
Messages: 3
Registered: December 2009
Junior Member
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 11:42 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
// 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: Wed Apr 24 20:31:02 GMT 2024

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

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

Back to the top