Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
thank you.
Previous Topic:How to identify keystroke
Next Topic:Selecting tree items more easily by using something like XPATH
Goto Forum:
  


Current Time: Sun Apr 27 01:20:45 EDT 2025

Powered by FUDForum. Page generated in 0.04060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top