문제

Using bot.viewByTitle() is not finding the view in which the present view is contained.I mean after selecting project name in project explorer in eclipse ,I am unable to select project explorer view again.

please help

도움이 되었습니까?

해결책

If you are using a views own bot (by calling bot() on a SWTBotView) you cannot find any elements that are not part of that view.

You should use the Workbench Bot instead.

SWTWorkbenchBot bot = new SWTWorkbenchBot();
bot.viewByTitle("My View"); 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top