Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Clicking a link insider an editor
Clicking a link insider an editor [message #23287] Thu, 19 February 2009 16:48 Go to next message
Paul Yeung is currently offline Paul Yeung
Messages: 3
Registered: July 2009
Junior Member
Hi there,

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.

Thanks.
Paul
Re: Clicking a link insider an editor [message #23374 is a reply to message #23287] Thu, 19 February 2009 22:03 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi,

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.

-- Ketan
how to locate a Link in a table cell and click it [message #24458 is a reply to message #23374] Wed, 25 February 2009 22:30 Go to previous messageGo to next message
guo jun shan is currently offline guo jun shan
Messages: 4
Registered: July 2009
Junior Member
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.
thanks.
would anybody help to solve this? [message #25681 is a reply to message #24458] Wed, 04 March 2009 02:10 Go to previous message
guo jun shan is currently offline guo jun shan
Messages: 4
Registered: July 2009
Junior Member
thank you.
Previous Topic:How to identify keystroke
Next Topic:Selecting tree items more easily by using something like XPATH
Goto Forum:
  


Current Time: Wed Jul 23 14:05:16 EDT 2014

Powered by FUDForum. Page generated in 0.01741 seconds