I've been using SWTBot for the past week. It has been working very well.
One blocker I have at the moment is the ability to click a link insider
the editor. What I am trying to do is, opening the Help Contents and
browsing to the Help of my application. Once my topic opens (which is
written in HTML), I want to be able to click on the links that appear in
the document. Is there a way to do this? I've tried using styletext, but
looks like it is the wrong method to use.
Paul Yeung wrote:
> What I am trying to do is, opening the Help Contents and
> browsing to the Help of my application. Once my topic opens (which is
> written in HTML), I want to be able to click on the links that appear in
> the document.
Looks like you're using the browser, browsers are not supported yet.
Also the SWT browser component does not allow injecting anything into it
to be able to click on it etc.
I'd recommend that you create an SWTBotBrowser object with just
constructors inside it (no methods) and invoke the getText method to
extract the link, and open it yourself.
Please do file a bug, and I'll pass it along to the swt team.
I have the similar problem.
I want to locate a link in a table cell, and click it, then a new dialog
window should be open.
how exactly should I write this kind of test case in SWTbot?
the online doc is so little.