Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Hyperlink click
Hyperlink click [message #515066] Wed, 17 February 2010 15:55 Go to next message
David CHAUTARD is currently offline David CHAUTARDFriend
Messages: 102
Registered: July 2009
Senior Member
Hello,

I try to select a hyperlink and to click on it, to open a browser. But with SWTWorkbenchBot, I just have link, and it doesn't work with hyperlink.

How can I click on hyperlink?

Thanks,
David.
Re: Hyperlink click [message #816968 is a reply to message #515066] Fri, 09 March 2012 13:24 Go to previous message
nani Missing name is currently offline nani Missing nameFriend
Messages: 10
Registered: May 2011
Junior Member
Hi,

if hyperlinks are placed in order like

XYXXXX
YYYYYY
ZZZZZZ

so you can use

SWTFormsBot formBot = new SWTFormsBot();
formBot.hyperlink(2).click();

here i clicked on hyper link ZZZZZ ,hyper link index starts from 0.


these are the following you should keep in mind,so that hyperlink can be identified.

-not to run the tool in debug mode because selection will be lost

if you find any issues raise them
Previous Topic:SWTBot and JExample and Test Dependency
Next Topic:SWTBot failing with Tycho
Goto Forum:
  


Current Time: Tue Apr 23 09:26:10 GMT 2024

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

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

Back to the top