SWTEclipseBot bot = new SWTEclipseBot();
assertTrue( "There are no editors open on startup", bot.editors().size()
== 0 );
I expect the above test to pass, as there are no open editors. But a
WidgetNotFoundException is thrown instead. Am I misunderstanding
something? It is (very slightly :) cumbersome to have to check if the
exception is thrown, so I'd rather not. Same thing happens with views(),
On 13/4/09 03:45, Matthew Gilliard wrote:
> A little digging:
> The problem seems to be in SWTBotEclipseEditor - the constructor assumes
> that an editor has a StyledText widget - which mine doesn't...
> bot.editor( name );
> both work if I add an invisible StyledText to my EditorPart. Except if
> there are no editors open, then bot.editors() still throws the exception.