org.eclipse.swtbot.swt.finder.widgets
Class SWTBotButton
java.lang.Object
org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<T>
org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl<Button>
org.eclipse.swtbot.swt.finder.widgets.SWTBotButton
public class SWTBotButton
- extends AbstractSWTBotControl<Button>
This represents a Button
widget of type SWT.PUSH
.
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
- See Also:
SWTBotCheckBox
,
SWTBotRadio
,
SWTBotToggleButton
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 |
SWTBotButton
public SWTBotButton(Button button)
- Constructs an instance of this object with the given button
- Parameters:
button
- the widget.
- Throws:
WidgetNotFoundException
- if the widget is null
or widget has been disposed.- Since:
- 2.0
SWTBotButton
public SWTBotButton(Button button,
SelfDescribing description)
- Constructs an instance of this object with the given button
- Parameters:
button
- 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.- Since:
- 2.0
click
public SWTBotButton click()
- Click on the button.
- Overrides:
click
in class AbstractSWTBot<Button>
- Returns:
- itself.