How to find the matches in Build Console View [message #508463] |
Mon, 18 January 2010 20:30  |
Eclipse User |
|
|
|
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 #508542 is a reply to message #508463] |
Tue, 19 January 2010 06:42  |
Eclipse User |
|
|
|
// 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()));
|
|
|
Powered by
FUDForum. Page generated in 0.03418 seconds