org.eclipse.swtbot.forms.finder.widgets
Class SWTBotHyperlink
java.lang.Object
org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<T>
org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl<Hyperlink>
org.eclipse.swtbot.forms.finder.widgets.SWTBotHyperlink
public class SWTBotHyperlink
- extends AbstractSWTBotControl<Hyperlink>
This represents a Hyperlink
widget.
- Version:
- $Id$
- Author:
- Chris Aniszczyk <caniszczyk [at] gmail [dot] com>
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
assertEnabled, asyncExec, backgroundColor, click, clickXY, contextMenu, contextMenu, createEvent, createMouseEvent, createSelectionEvent, doubleClickXY, foregroundColor, getId, getText, getToolTipText, hasStyle, isActive, isEnabled, isEnabledInternal, isVisible, keyboard, notify, notify, notify, pressShortcut, pressShortcut, pressShortcut, rightClick, rightClick, setFocus, sleep, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, toString, traverse, waitForEnabled |
SWTBotHyperlink
public SWTBotHyperlink(Hyperlink w)
throws WidgetNotFoundException
- Constructs a new instance with the given widget.
- Parameters:
w
- the widget.
- Throws:
WidgetNotFoundException
- if the widget is null
or widget has been disposed.
SWTBotHyperlink
public SWTBotHyperlink(Hyperlink w,
SelfDescribing description)
throws WidgetNotFoundException
- Constructs a new instance with the given widget.
- Parameters:
w
- the widget.description
- the description of the widget, this will be reported by AbstractSWTBot.toString()
- Throws:
WidgetNotFoundException
- if the widget is null
or widget has been disposed.
click
public AbstractSWTBot<Hyperlink> click()
- Description copied from class:
AbstractSWTBot
- Clicks on this widget.
- Overrides:
click
in class AbstractSWTBot<Hyperlink>
- Returns:
- itself.
click
public AbstractSWTBot<Hyperlink> click(String hyperlinkText)
- Clicks on the hyperlink with the specified text.
- Parameters:
hyperlinkText
- the text of the hyperlink in case there are more than one hyperlinks.
- Returns:
- itself.