|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.swt.finder.SWTBot
public class SWTBot
This class contains convenience API to find widgets in SWTBot. Most users would start off as follows:
SWTBot bot = new SWTBot();
bot.button("hello world").click();
// in case you have two edit buttons in two different groups
// say an edit button in the "Address" section,
// and another in "Bank Account" section, you can do the following
// to click on the "Edit" button on the "Bank Account" section.
// This is the recommended way to use SWTBot, instead of finding widgets based on its index.
bot.buttonInGroup("Edit", "Bank Account").click();
For finding widgets using custom matchers:
SWTBot bot = new SWTBot();
//
// find a button within the currently active shell:
//
SWTBotButton button = new SWTBotButton((Button) bot.widget(aMatcher)); // or
SWTBotButton button = new SWTBotButton((Button)bot.widget(aMatcher, 3)); // for the 4th widget
//
// to find a button within a particular parent composite:
//
SWTBotButton button = new SWTBotButton((Button) bot.widget(aMatcher, parentComposite)); //or
SWTBotButton button = new SWTBotButton((Button) bot.widget(aMatcher, parentComposite, 3)); //for the 4th widget
| Field Summary | |
|---|---|
static long |
DEFAULT_POLL_DELAY
Deprecated. |
protected Display |
display
The display on which the bot operates on. |
protected Finder |
finder
The finder used by the bot to find controls. |
| Constructor Summary | |
|---|---|
SWTBot()
Constructs a bot. |
|
SWTBot(ControlFinder controlFinder,
MenuFinder menuFinder)
Constructs an instance of the bot using the given control finder and menu finder. |
|
SWTBot(Finder finder)
Constructs a bot with the given finder. |
|
SWTBot(Widget parent)
Constructs a bot that will match the contents of the given parentWidget. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final long DEFAULT_POLL_DELAY
protected final Display display
protected final Finder finder
| Constructor Detail |
|---|
public SWTBot()
public SWTBot(Widget parent)
parent - the parent
public SWTBot(ControlFinder controlFinder,
MenuFinder menuFinder)
controlFinder - the ControlFinder used to identify and find controls.menuFinder - the MenuFinder used to find menu items.public SWTBot(Finder finder)
finder - the finder.| Method Detail |
|---|
public SWTBotButton buttonWithLabel(String label)
label - the label on the widget.
SWTBotButton with the specified label.
public SWTBotButton buttonWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotButton with the specified label.public SWTBotButton button(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotButton with the specified mnemonicText.
public SWTBotButton button(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotButton with the specified mnemonicText.public SWTBotButton buttonWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotButton with the specified tooltip.
public SWTBotButton buttonWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotButton with the specified tooltip.
public SWTBotButton buttonWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotButton with the specified key/value.
public SWTBotButton buttonWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotButton with the specified key/value.public SWTBotButton buttonWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotButton with the specified value.
public SWTBotButton buttonWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotButton with the specified value.public SWTBotButton buttonInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotButton with the specified inGroup.
public SWTBotButton buttonInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotButton with the specified inGroup.public SWTBotButton button()
SWTBotButton with the specified none.public SWTBotButton button(int index)
index - the index of the widget.
SWTBotButton with the specified none.
public SWTBotButton buttonWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotButton with the specified label with the specified inGroup.
public SWTBotButton buttonWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotButton with the specified label with the specified inGroup.
public SWTBotButton buttonInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotButton with the specified mnemonicText with the specified inGroup.
public SWTBotButton buttonInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotButton with the specified mnemonicText with the specified inGroup.
public SWTBotButton buttonWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotButton with the specified tooltip with the specified inGroup.
public SWTBotButton buttonWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotButton with the specified tooltip with the specified inGroup.public SWTBotCheckBox checkBoxWithLabel(String label)
label - the label on the widget.
SWTBotCheckBox with the specified label.
public SWTBotCheckBox checkBoxWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotCheckBox with the specified label.public SWTBotCheckBox checkBox(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotCheckBox with the specified mnemonicText.
public SWTBotCheckBox checkBox(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotCheckBox with the specified mnemonicText.public SWTBotCheckBox checkBoxWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotCheckBox with the specified tooltip.
public SWTBotCheckBox checkBoxWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotCheckBox with the specified tooltip.
public SWTBotCheckBox checkBoxWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotCheckBox with the specified key/value.
public SWTBotCheckBox checkBoxWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotCheckBox with the specified key/value.public SWTBotCheckBox checkBoxWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotCheckBox with the specified value.
public SWTBotCheckBox checkBoxWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotCheckBox with the specified value.public SWTBotCheckBox checkBoxInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotCheckBox with the specified inGroup.
public SWTBotCheckBox checkBoxInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCheckBox with the specified inGroup.public SWTBotCheckBox checkBox()
SWTBotCheckBox with the specified none.public SWTBotCheckBox checkBox(int index)
index - the index of the widget.
SWTBotCheckBox with the specified none.
public SWTBotCheckBox checkBoxWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotCheckBox with the specified label with the specified inGroup.
public SWTBotCheckBox checkBoxWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCheckBox with the specified label with the specified inGroup.
public SWTBotCheckBox checkBoxInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotCheckBox with the specified mnemonicText with the specified inGroup.
public SWTBotCheckBox checkBoxInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCheckBox with the specified mnemonicText with the specified inGroup.
public SWTBotCheckBox checkBoxWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotCheckBox with the specified tooltip with the specified inGroup.
public SWTBotCheckBox checkBoxWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCheckBox with the specified tooltip with the specified inGroup.public SWTBotRadio radioWithLabel(String label)
label - the label on the widget.
SWTBotRadio with the specified label.
public SWTBotRadio radioWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotRadio with the specified label.public SWTBotRadio radio(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotRadio with the specified mnemonicText.
public SWTBotRadio radio(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotRadio with the specified mnemonicText.public SWTBotRadio radioWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotRadio with the specified tooltip.
public SWTBotRadio radioWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotRadio with the specified tooltip.
public SWTBotRadio radioWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotRadio with the specified key/value.
public SWTBotRadio radioWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotRadio with the specified key/value.public SWTBotRadio radioWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotRadio with the specified value.
public SWTBotRadio radioWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotRadio with the specified value.public SWTBotRadio radioInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotRadio with the specified inGroup.
public SWTBotRadio radioInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotRadio with the specified inGroup.public SWTBotRadio radio()
SWTBotRadio with the specified none.public SWTBotRadio radio(int index)
index - the index of the widget.
SWTBotRadio with the specified none.
public SWTBotRadio radioWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotRadio with the specified label with the specified inGroup.
public SWTBotRadio radioWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotRadio with the specified label with the specified inGroup.
public SWTBotRadio radioInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotRadio with the specified mnemonicText with the specified inGroup.
public SWTBotRadio radioInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotRadio with the specified mnemonicText with the specified inGroup.
public SWTBotRadio radioWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotRadio with the specified tooltip with the specified inGroup.
public SWTBotRadio radioWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotRadio with the specified tooltip with the specified inGroup.public SWTBotToggleButton toggleButtonWithLabel(String label)
label - the label on the widget.
SWTBotToggleButton with the specified label.
public SWTBotToggleButton toggleButtonWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotToggleButton with the specified label.public SWTBotToggleButton toggleButton(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotToggleButton with the specified mnemonicText.
public SWTBotToggleButton toggleButton(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotToggleButton with the specified mnemonicText.public SWTBotToggleButton toggleButtonWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotToggleButton with the specified tooltip.
public SWTBotToggleButton toggleButtonWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotToggleButton with the specified tooltip.
public SWTBotToggleButton toggleButtonWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotToggleButton with the specified key/value.
public SWTBotToggleButton toggleButtonWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotToggleButton with the specified key/value.public SWTBotToggleButton toggleButtonWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotToggleButton with the specified value.
public SWTBotToggleButton toggleButtonWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotToggleButton with the specified value.public SWTBotToggleButton toggleButtonInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotToggleButton with the specified inGroup.
public SWTBotToggleButton toggleButtonInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToggleButton with the specified inGroup.public SWTBotToggleButton toggleButton()
SWTBotToggleButton with the specified none.public SWTBotToggleButton toggleButton(int index)
index - the index of the widget.
SWTBotToggleButton with the specified none.
public SWTBotToggleButton toggleButtonWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotToggleButton with the specified label with the specified inGroup.
public SWTBotToggleButton toggleButtonWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToggleButton with the specified label with the specified inGroup.
public SWTBotToggleButton toggleButtonInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotToggleButton with the specified mnemonicText with the specified inGroup.
public SWTBotToggleButton toggleButtonInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToggleButton with the specified mnemonicText with the specified inGroup.
public SWTBotToggleButton toggleButtonWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotToggleButton with the specified tooltip with the specified inGroup.
public SWTBotToggleButton toggleButtonWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToggleButton with the specified tooltip with the specified inGroup.public SWTBotTree treeWithLabel(String label)
label - the label on the widget.
SWTBotTree with the specified label.
public SWTBotTree treeWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotTree with the specified label.
public SWTBotTree treeWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotTree with the specified key/value.
public SWTBotTree treeWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotTree with the specified key/value.public SWTBotTree treeWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotTree with the specified value.
public SWTBotTree treeWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotTree with the specified value.public SWTBotTree treeInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotTree with the specified inGroup.
public SWTBotTree treeInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotTree with the specified inGroup.public SWTBotTree tree()
SWTBotTree with the specified none.public SWTBotTree tree(int index)
index - the index of the widget.
SWTBotTree with the specified none.
public SWTBotTree treeWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotTree with the specified label with the specified inGroup.
public SWTBotTree treeWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotTree with the specified label with the specified inGroup.public SWTBotText textWithLabel(String label)
label - the label on the widget.
SWTBotText with the specified label.
public SWTBotText textWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotText with the specified label.public SWTBotText text(String text)
text - the text on the widget.
SWTBotText with the specified text.
public SWTBotText text(String text,
int index)
text - the text on the widget.index - the index of the widget.
SWTBotText with the specified text.public SWTBotText textWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotText with the specified tooltip.
public SWTBotText textWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotText with the specified tooltip.public SWTBotText textWithMessage(String message)
message - the message on the widget.
SWTBotText with the specified message.
public SWTBotText textWithMessage(String message,
int index)
message - the message on the widget.index - the index of the widget.
SWTBotText with the specified message.
public SWTBotText textWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotText with the specified key/value.
public SWTBotText textWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotText with the specified key/value.public SWTBotText textWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotText with the specified value.
public SWTBotText textWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotText with the specified value.public SWTBotText textInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotText with the specified inGroup.
public SWTBotText textInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotText with the specified inGroup.public SWTBotText text()
SWTBotText with the specified none.public SWTBotText text(int index)
index - the index of the widget.
SWTBotText with the specified none.
public SWTBotText textWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotText with the specified label with the specified inGroup.
public SWTBotText textWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotText with the specified label with the specified inGroup.
public SWTBotText textInGroup(String text,
String inGroup)
text - the text on the widget.inGroup - the inGroup on the widget.
SWTBotText with the specified text with the specified inGroup.
public SWTBotText textInGroup(String text,
String inGroup,
int index)
text - the text on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotText with the specified text with the specified inGroup.
public SWTBotText textWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotText with the specified tooltip with the specified inGroup.
public SWTBotText textWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotText with the specified tooltip with the specified inGroup.public SWTBotCombo comboBoxWithLabel(String label)
label - the label on the widget.
SWTBotCombo with the specified label.
public SWTBotCombo comboBoxWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotCombo with the specified label.public SWTBotCombo comboBox(String text)
text - the text on the widget.
SWTBotCombo with the specified text.
public SWTBotCombo comboBox(String text,
int index)
text - the text on the widget.index - the index of the widget.
SWTBotCombo with the specified text.
public SWTBotCombo comboBoxWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotCombo with the specified key/value.
public SWTBotCombo comboBoxWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotCombo with the specified key/value.public SWTBotCombo comboBoxWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotCombo with the specified value.
public SWTBotCombo comboBoxWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotCombo with the specified value.public SWTBotCombo comboBoxInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotCombo with the specified inGroup.
public SWTBotCombo comboBoxInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCombo with the specified inGroup.public SWTBotCombo comboBox()
SWTBotCombo with the specified none.public SWTBotCombo comboBox(int index)
index - the index of the widget.
SWTBotCombo with the specified none.
public SWTBotCombo comboBoxWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotCombo with the specified label with the specified inGroup.
public SWTBotCombo comboBoxWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCombo with the specified label with the specified inGroup.
public SWTBotCombo comboBoxInGroup(String text,
String inGroup)
text - the text on the widget.inGroup - the inGroup on the widget.
SWTBotCombo with the specified text with the specified inGroup.
public SWTBotCombo comboBoxInGroup(String text,
String inGroup,
int index)
text - the text on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCombo with the specified text with the specified inGroup.public SWTBotCCombo ccomboBox(String text)
text - the text on the widget.
SWTBotCCombo with the specified text.
public SWTBotCCombo ccomboBox(String text,
int index)
text - the text on the widget.index - the index of the widget.
SWTBotCCombo with the specified text.public SWTBotCCombo ccomboBoxWithLabel(String label)
label - the label on the widget.
SWTBotCCombo with the specified label.
public SWTBotCCombo ccomboBoxWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotCCombo with the specified label.
public SWTBotCCombo ccomboBoxWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotCCombo with the specified key/value.
public SWTBotCCombo ccomboBoxWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotCCombo with the specified key/value.public SWTBotCCombo ccomboBoxWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotCCombo with the specified value.
public SWTBotCCombo ccomboBoxWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotCCombo with the specified value.public SWTBotCCombo ccomboBoxInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotCCombo with the specified inGroup.
public SWTBotCCombo ccomboBoxInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCCombo with the specified inGroup.public SWTBotCCombo ccomboBox()
SWTBotCCombo with the specified none.public SWTBotCCombo ccomboBox(int index)
index - the index of the widget.
SWTBotCCombo with the specified none.
public SWTBotCCombo ccomboBoxInGroup(String text,
String inGroup)
text - the text on the widget.inGroup - the inGroup on the widget.
SWTBotCCombo with the specified text with the specified inGroup.
public SWTBotCCombo ccomboBoxInGroup(String text,
String inGroup,
int index)
text - the text on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCCombo with the specified text with the specified inGroup.
public SWTBotCCombo ccomboBoxWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotCCombo with the specified label with the specified inGroup.
public SWTBotCCombo ccomboBoxWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCCombo with the specified label with the specified inGroup.public SWTBotCLabel clabel(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotCLabel with the specified mnemonicText.
public SWTBotCLabel clabel(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotCLabel with the specified mnemonicText.
public SWTBotCLabel clabelWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotCLabel with the specified key/value.
public SWTBotCLabel clabelWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotCLabel with the specified key/value.public SWTBotCLabel clabelWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotCLabel with the specified value.
public SWTBotCLabel clabelWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotCLabel with the specified value.public SWTBotCLabel clabelInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotCLabel with the specified inGroup.
public SWTBotCLabel clabelInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCLabel with the specified inGroup.public SWTBotCLabel clabel()
SWTBotCLabel with the specified none.public SWTBotCLabel clabel(int index)
index - the index of the widget.
SWTBotCLabel with the specified none.
public SWTBotCLabel clabelInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotCLabel with the specified mnemonicText with the specified inGroup.
public SWTBotCLabel clabelInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCLabel with the specified mnemonicText with the specified inGroup.public SWTBotLabel label(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotLabel with the specified mnemonicText.
public SWTBotLabel label(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotLabel with the specified mnemonicText.
public SWTBotLabel labelWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotLabel with the specified key/value.
public SWTBotLabel labelWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotLabel with the specified key/value.public SWTBotLabel labelWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotLabel with the specified value.
public SWTBotLabel labelWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotLabel with the specified value.public SWTBotLabel labelInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotLabel with the specified inGroup.
public SWTBotLabel labelInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotLabel with the specified inGroup.public SWTBotLabel label()
SWTBotLabel with the specified none.public SWTBotLabel label(int index)
index - the index of the widget.
SWTBotLabel with the specified none.
public SWTBotLabel labelInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotLabel with the specified mnemonicText with the specified inGroup.
public SWTBotLabel labelInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotLabel with the specified mnemonicText with the specified inGroup.public SWTBotList listWithLabel(String label)
label - the label on the widget.
SWTBotList with the specified label.
public SWTBotList listWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotList with the specified label.
public SWTBotList listWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotList with the specified key/value.
public SWTBotList listWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotList with the specified key/value.public SWTBotList listWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotList with the specified value.
public SWTBotList listWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotList with the specified value.public SWTBotList listInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotList with the specified inGroup.
public SWTBotList listInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotList with the specified inGroup.public SWTBotList list()
SWTBotList with the specified none.public SWTBotList list(int index)
index - the index of the widget.
SWTBotList with the specified none.
public SWTBotList listWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotList with the specified label with the specified inGroup.
public SWTBotList listWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotList with the specified label with the specified inGroup.public SWTBotTable tableWithLabel(String label)
label - the label on the widget.
SWTBotTable with the specified label.
public SWTBotTable tableWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotTable with the specified label.
public SWTBotTable tableWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotTable with the specified key/value.
public SWTBotTable tableWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotTable with the specified key/value.public SWTBotTable tableWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotTable with the specified value.
public SWTBotTable tableWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotTable with the specified value.public SWTBotTable tableInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotTable with the specified inGroup.
public SWTBotTable tableInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotTable with the specified inGroup.public SWTBotTable table()
SWTBotTable with the specified none.public SWTBotTable table(int index)
index - the index of the widget.
SWTBotTable with the specified none.
public SWTBotTable tableWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotTable with the specified label with the specified inGroup.
public SWTBotTable tableWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotTable with the specified label with the specified inGroup.public SWTBotTabItem tabItem(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotTabItem with the specified mnemonicText.
public SWTBotTabItem tabItem(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotTabItem with the specified mnemonicText.
public SWTBotTabItem tabItemWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotTabItem with the specified key/value.
public SWTBotTabItem tabItemWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotTabItem with the specified key/value.public SWTBotTabItem tabItemWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotTabItem with the specified value.
public SWTBotTabItem tabItemWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotTabItem with the specified value.public SWTBotTabItem tabItemInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotTabItem with the specified inGroup.
public SWTBotTabItem tabItemInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotTabItem with the specified inGroup.public SWTBotTabItem tabItem()
SWTBotTabItem with the specified none.public SWTBotTabItem tabItem(int index)
index - the index of the widget.
SWTBotTabItem with the specified none.
public SWTBotTabItem tabItemInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotTabItem with the specified mnemonicText with the specified inGroup.
public SWTBotTabItem tabItemInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotTabItem with the specified mnemonicText with the specified inGroup.public SWTBotCTabItem cTabItem(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotCTabItem with the specified mnemonicText.
public SWTBotCTabItem cTabItem(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotCTabItem with the specified mnemonicText.
public SWTBotCTabItem cTabItemWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotCTabItem with the specified key/value.
public SWTBotCTabItem cTabItemWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotCTabItem with the specified key/value.public SWTBotCTabItem cTabItemWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotCTabItem with the specified value.
public SWTBotCTabItem cTabItemWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotCTabItem with the specified value.public SWTBotCTabItem cTabItemInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotCTabItem with the specified inGroup.
public SWTBotCTabItem cTabItemInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCTabItem with the specified inGroup.public SWTBotCTabItem cTabItem()
SWTBotCTabItem with the specified none.public SWTBotCTabItem cTabItem(int index)
index - the index of the widget.
SWTBotCTabItem with the specified none.
public SWTBotCTabItem cTabItemInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotCTabItem with the specified mnemonicText with the specified inGroup.
public SWTBotCTabItem cTabItemInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotCTabItem with the specified mnemonicText with the specified inGroup.public SWTBotStyledText styledTextWithLabel(String label)
label - the label on the widget.
SWTBotStyledText with the specified label.
public SWTBotStyledText styledTextWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotStyledText with the specified label.public SWTBotStyledText styledText(String text)
text - the text on the widget.
SWTBotStyledText with the specified text.
public SWTBotStyledText styledText(String text,
int index)
text - the text on the widget.index - the index of the widget.
SWTBotStyledText with the specified text.
public SWTBotStyledText styledTextWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotStyledText with the specified key/value.
public SWTBotStyledText styledTextWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotStyledText with the specified key/value.public SWTBotStyledText styledTextWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotStyledText with the specified value.
public SWTBotStyledText styledTextWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotStyledText with the specified value.public SWTBotStyledText styledTextInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotStyledText with the specified inGroup.
public SWTBotStyledText styledTextInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotStyledText with the specified inGroup.public SWTBotStyledText styledText()
SWTBotStyledText with the specified none.public SWTBotStyledText styledText(int index)
index - the index of the widget.
SWTBotStyledText with the specified none.
public SWTBotStyledText styledTextWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotStyledText with the specified label with the specified inGroup.
public SWTBotStyledText styledTextWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotStyledText with the specified label with the specified inGroup.
public SWTBotStyledText styledTextInGroup(String text,
String inGroup)
text - the text on the widget.inGroup - the inGroup on the widget.
SWTBotStyledText with the specified text with the specified inGroup.
public SWTBotStyledText styledTextInGroup(String text,
String inGroup,
int index)
text - the text on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotStyledText with the specified text with the specified inGroup.public SWTBotDateTime dateTimeWithLabel(String label)
label - the label on the widget.
SWTBotDateTime with the specified label.
public SWTBotDateTime dateTimeWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotDateTime with the specified label.
public SWTBotDateTime dateTimeWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotDateTime with the specified key/value.
public SWTBotDateTime dateTimeWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotDateTime with the specified key/value.public SWTBotDateTime dateTimeWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotDateTime with the specified value.
public SWTBotDateTime dateTimeWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotDateTime with the specified value.public SWTBotDateTime dateTimeInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotDateTime with the specified inGroup.
public SWTBotDateTime dateTimeInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotDateTime with the specified inGroup.public SWTBotDateTime dateTime()
SWTBotDateTime with the specified none.public SWTBotDateTime dateTime(int index)
index - the index of the widget.
SWTBotDateTime with the specified none.
public SWTBotDateTime dateTimeWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotDateTime with the specified label with the specified inGroup.
public SWTBotDateTime dateTimeWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotDateTime with the specified label with the specified inGroup.public SWTBotToolbarButton toolbarButton(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotToolbarButton with the specified mnemonicText.
public SWTBotToolbarButton toolbarButton(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotToolbarButton with the specified mnemonicText.public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotToolbarButton with the specified tooltip.
public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotToolbarButton with the specified tooltip.
public SWTBotToolbarButton toolbarButtonWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotToolbarButton with the specified key/value.
public SWTBotToolbarButton toolbarButtonWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotToolbarButton with the specified key/value.public SWTBotToolbarButton toolbarButtonWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotToolbarButton with the specified value.
public SWTBotToolbarButton toolbarButtonWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotToolbarButton with the specified value.public SWTBotToolbarButton toolbarButtonInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotToolbarButton with the specified inGroup.
public SWTBotToolbarButton toolbarButtonInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarButton with the specified inGroup.public SWTBotToolbarButton toolbarButton()
SWTBotToolbarButton with the specified none.public SWTBotToolbarButton toolbarButton(int index)
index - the index of the widget.
SWTBotToolbarButton with the specified none.
public SWTBotToolbarButton toolbarButtonInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarButton toolbarButtonInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarButton toolbarButtonWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarButton with the specified tooltip with the specified inGroup.
public SWTBotToolbarButton toolbarButtonWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarButton with the specified tooltip with the specified inGroup.public SWTBotToolbarToggleButton toolbarToggleButton(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotToolbarToggleButton with the specified mnemonicText.
public SWTBotToolbarToggleButton toolbarToggleButton(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotToolbarToggleButton with the specified mnemonicText.public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotToolbarToggleButton with the specified tooltip.
public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotToolbarToggleButton with the specified tooltip.
public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotToolbarToggleButton with the specified key/value.
public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotToolbarToggleButton with the specified key/value.public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotToolbarToggleButton with the specified value.
public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotToolbarToggleButton with the specified value.public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotToolbarToggleButton with the specified inGroup.
public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarToggleButton with the specified inGroup.public SWTBotToolbarToggleButton toolbarToggleButton()
SWTBotToolbarToggleButton with the specified none.public SWTBotToolbarToggleButton toolbarToggleButton(int index)
index - the index of the widget.
SWTBotToolbarToggleButton with the specified none.
public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarToggleButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarToggleButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarToggleButton with the specified tooltip with the specified inGroup.
public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarToggleButton with the specified tooltip with the specified inGroup.public SWTBotToolbarDropDownButton toolbarDropDownButton(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotToolbarDropDownButton with the specified mnemonicText.
public SWTBotToolbarDropDownButton toolbarDropDownButton(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotToolbarDropDownButton with the specified mnemonicText.public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotToolbarDropDownButton with the specified tooltip.
public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotToolbarDropDownButton with the specified tooltip.
public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotToolbarDropDownButton with the specified key/value.
public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotToolbarDropDownButton with the specified key/value.public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotToolbarDropDownButton with the specified value.
public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotToolbarDropDownButton with the specified value.public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotToolbarDropDownButton with the specified inGroup.
public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarDropDownButton with the specified inGroup.public SWTBotToolbarDropDownButton toolbarDropDownButton()
SWTBotToolbarDropDownButton with the specified none.public SWTBotToolbarDropDownButton toolbarDropDownButton(int index)
index - the index of the widget.
SWTBotToolbarDropDownButton with the specified none.
public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarDropDownButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarDropDownButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarDropDownButton with the specified tooltip with the specified inGroup.
public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarDropDownButton with the specified tooltip with the specified inGroup.public SWTBotToolbarRadioButton toolbarRadioButton(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotToolbarRadioButton with the specified mnemonicText.
public SWTBotToolbarRadioButton toolbarRadioButton(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotToolbarRadioButton with the specified mnemonicText.public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotToolbarRadioButton with the specified tooltip.
public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotToolbarRadioButton with the specified tooltip.
public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotToolbarRadioButton with the specified key/value.
public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotToolbarRadioButton with the specified key/value.public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotToolbarRadioButton with the specified value.
public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotToolbarRadioButton with the specified value.public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotToolbarRadioButton with the specified inGroup.
public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarRadioButton with the specified inGroup.public SWTBotToolbarRadioButton toolbarRadioButton()
SWTBotToolbarRadioButton with the specified none.public SWTBotToolbarRadioButton toolbarRadioButton(int index)
index - the index of the widget.
SWTBotToolbarRadioButton with the specified none.
public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarRadioButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarRadioButton with the specified mnemonicText with the specified inGroup.
public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotToolbarRadioButton with the specified tooltip with the specified inGroup.
public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotToolbarRadioButton with the specified tooltip with the specified inGroup.public SWTBotLink link(String mnemonicText)
mnemonicText - the mnemonicText on the widget.
SWTBotLink with the specified mnemonicText.
public SWTBotLink link(String mnemonicText,
int index)
mnemonicText - the mnemonicText on the widget.index - the index of the widget.
SWTBotLink with the specified mnemonicText.
public SWTBotLink linkWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotLink with the specified key/value.
public SWTBotLink linkWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotLink with the specified key/value.public SWTBotLink linkWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotLink with the specified value.
public SWTBotLink linkWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotLink with the specified value.public SWTBotLink linkInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotLink with the specified inGroup.
public SWTBotLink linkInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotLink with the specified inGroup.public SWTBotLink link()
SWTBotLink with the specified none.public SWTBotLink link(int index)
index - the index of the widget.
SWTBotLink with the specified none.
public SWTBotLink linkInGroup(String mnemonicText,
String inGroup)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.
SWTBotLink with the specified mnemonicText with the specified inGroup.
public SWTBotLink linkInGroup(String mnemonicText,
String inGroup,
int index)
mnemonicText - the mnemonicText on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotLink with the specified mnemonicText with the specified inGroup.public SWTBotSpinner spinnerWithLabel(String label)
label - the label on the widget.
SWTBotSpinner with the specified label.
public SWTBotSpinner spinnerWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotSpinner with the specified label.public SWTBotSpinner spinner(String text)
text - the text on the widget.
SWTBotSpinner with the specified text.
public SWTBotSpinner spinner(String text,
int index)
text - the text on the widget.index - the index of the widget.
SWTBotSpinner with the specified text.public SWTBotSpinner spinnerWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotSpinner with the specified tooltip.
public SWTBotSpinner spinnerWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotSpinner with the specified tooltip.
public SWTBotSpinner spinnerWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotSpinner with the specified key/value.
public SWTBotSpinner spinnerWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotSpinner with the specified key/value.public SWTBotSpinner spinnerWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotSpinner with the specified value.
public SWTBotSpinner spinnerWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotSpinner with the specified value.public SWTBotSpinner spinnerInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotSpinner with the specified inGroup.
public SWTBotSpinner spinnerInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSpinner with the specified inGroup.public SWTBotSpinner spinner()
SWTBotSpinner with the specified none.public SWTBotSpinner spinner(int index)
index - the index of the widget.
SWTBotSpinner with the specified none.
public SWTBotSpinner spinnerWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotSpinner with the specified label with the specified inGroup.
public SWTBotSpinner spinnerWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSpinner with the specified label with the specified inGroup.
public SWTBotSpinner spinnerInGroup(String text,
String inGroup)
text - the text on the widget.inGroup - the inGroup on the widget.
SWTBotSpinner with the specified text with the specified inGroup.
public SWTBotSpinner spinnerInGroup(String text,
String inGroup,
int index)
text - the text on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSpinner with the specified text with the specified inGroup.
public SWTBotSpinner spinnerWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotSpinner with the specified tooltip with the specified inGroup.
public SWTBotSpinner spinnerWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSpinner with the specified tooltip with the specified inGroup.public SWTBotSlider sliderWithLabel(String label)
label - the label on the widget.
SWTBotSlider with the specified label.
public SWTBotSlider sliderWithLabel(String label,
int index)
label - the label on the widget.index - the index of the widget.
SWTBotSlider with the specified label.public SWTBotSlider slider(String text)
text - the text on the widget.
SWTBotSlider with the specified text.
public SWTBotSlider slider(String text,
int index)
text - the text on the widget.index - the index of the widget.
SWTBotSlider with the specified text.public SWTBotSlider sliderWithTooltip(String tooltip)
tooltip - the tooltip on the widget.
SWTBotSlider with the specified tooltip.
public SWTBotSlider sliderWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the widget.index - the index of the widget.
SWTBotSlider with the specified tooltip.
public SWTBotSlider sliderWithId(String key,
String value)
key - the key set on the widget.value - the value for the key.
SWTBotSlider with the specified key/value.
public SWTBotSlider sliderWithId(String key,
String value,
int index)
key - the key set on the widget.value - the value for the key.index - the index of the widget.
SWTBotSlider with the specified key/value.public SWTBotSlider sliderWithId(String value)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.
SWTBotSlider with the specified value.
public SWTBotSlider sliderWithId(String value,
int index)
value - the value for the key SWTBotPreferences.DEFAULT_KEY.index - the index of the widget.
SWTBotSlider with the specified value.public SWTBotSlider sliderInGroup(String inGroup)
inGroup - the inGroup on the widget.
SWTBotSlider with the specified inGroup.
public SWTBotSlider sliderInGroup(String inGroup,
int index)
inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSlider with the specified inGroup.public SWTBotSlider slider()
SWTBotSlider with the specified none.public SWTBotSlider slider(int index)
index - the index of the widget.
SWTBotSlider with the specified none.
public SWTBotSlider sliderWithLabelInGroup(String label,
String inGroup)
label - the label on the widget.inGroup - the inGroup on the widget.
SWTBotSlider with the specified label with the specified inGroup.
public SWTBotSlider sliderWithLabelInGroup(String label,
String inGroup,
int index)
label - the label on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSlider with the specified label with the specified inGroup.
public SWTBotSlider sliderInGroup(String text,
String inGroup)
text - the text on the widget.inGroup - the inGroup on the widget.
SWTBotSlider with the specified text with the specified inGroup.
public SWTBotSlider sliderInGroup(String text,
String inGroup,
int index)
text - the text on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSlider with the specified text with the specified inGroup.
public SWTBotSlider sliderWithTooltipInGroup(String tooltip,
String inGroup)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.
SWTBotSlider with the specified tooltip with the specified inGroup.
public SWTBotSlider sliderWithTooltipInGroup(String tooltip,
String inGroup,
int index)
tooltip - the tooltip on the widget.inGroup - the inGroup on the widget.index - the index of the widget.
SWTBotSlider with the specified tooltip with the specified inGroup.public SWTBotShell shell(String text)
text - the text on the shell.
public SWTBotShell shell(String text,
int index)
text - the text on the shell.index - the index of the shell, in case there are multiple shells with the same text.
Shell with the specified index.public List<Shell> shells(String text)
text - the text on the shell.
Shell with the specified index.
public SWTBotShell shell(String text,
Shell parent)
text - the text on the shell.parent - the parent under which a shell will be found.
public SWTBotShell shell(String text,
Shell parent,
int index)
text - the text on the shell.parent - the parent under which a shell will be found.index - the index of the shell, in case there are multiple shells with the same text.
Shell with the specified index.
public List<Shell> shells(String text,
Shell parent)
text - the text on the shell.parent - the parent under which a shell will be found.
Shell which matched.public SWTBotShell shellWithId(String value)
value - the value of the id
public SWTBotShell shellWithId(String key,
String value)
key - the key of the idvalue - the value of the id
public SWTBotShell shellWithId(String value,
int index)
value - the value of the idindex - the index of the shell, in case there are multiple shells with the same text.
public SWTBotShell shellWithId(String key,
String value,
int index)
key - the key of the idvalue - the value of the idindex - the index of the shell, in case there are multiple shells with the same text.
public SWTBotMenu menu(String text)
text - the text on the menu.
public SWTBotMenu menu(String text,
int index)
text - the text on the menu.index - the index of the menu, in case there are multiple menus with the same text.
public SWTBotMenu menuWithId(String value)
value - the value of the id.
public SWTBotMenu menuWithId(String value,
int index)
value - the value of the id.index - the index of the menu item, in case there are multiple shells with the same text.
public SWTBotMenu menuWithId(String key,
String value)
key - the key of the id.value - the value of the id.
public SWTBotMenu menuWithId(String key,
String value,
int index)
key - the key of the id.value - the value of the id.index - the index of the menu item, in case there are multiple shells with the same text.
public SWTBotMenu menu(SWTBotShell shell,
org.hamcrest.Matcher<MenuItem> matcher,
int index)
shell - the shell to search for the menu.matcher - the matcher used to find the menu.index - the index of the menu, in case there are multiple menus with the same text.
public <T extends Widget> List<? extends T> widgets(org.hamcrest.Matcher<T> matcher,
Widget parentWidget)
matcher - the matcher used to match widgets.parentWidget - the parent widget to search for a given widget.
public <T extends Widget> List<? extends T> widgets(org.hamcrest.Matcher<T> matcher)
matcher - the matcher used to match widgets.
public <T extends Widget> T widget(org.hamcrest.Matcher<T> matcher,
Widget parentWidget)
matcher - the matcher used to match widgets.parentWidget - the parent widget to search for a given widget.
public <T extends Widget> T widget(org.hamcrest.Matcher<T> matcher,
Widget parentWidget,
int index)
matcher - the matcher used to match widgets.parentWidget - the parent widget to search for a given widget.index - the index of the widget, incase the matcher finds multiple widgets
public <T extends Widget> T widget(org.hamcrest.Matcher<T> matcher,
int index)
matcher - the matcher used to match widgets.index - the index of the widget in case there are multiple widgets.
public <T extends Widget> T widget(org.hamcrest.Matcher<T> matcher)
matcher - the matcher used to match widgets.
public SWTBotShell[] shells()
public SWTBotShell activeShell()
throws WidgetNotFoundException
WidgetNotFoundException - if the widget is not found.public void waitUntilWidgetAppears(ICondition waitForWidget)
public void waitUntil(ICondition condition)
throws TimeoutException
condition - the ICondition to be evaluated.
TimeoutException - if the condition does not evaluate to true after SWTBotPreferences.TIMEOUT milliseconds.
public void waitUntil(ICondition condition,
long timeout)
throws TimeoutException
condition - the condition to be evaluated.timeout - the timeout.
TimeoutException - if the condition does not evaluate to true after timeout milliseconds.
public void waitUntil(ICondition condition,
long timeout,
long interval)
throws TimeoutException
condition - the condition to be evaluated.timeout - the timeout.interval - The delay time.
TimeoutException - if the condition does not evaluate to true after timeout milliseconds.
public void waitWhile(ICondition condition)
throws TimeoutException
condition - the ICondition to be evaluated.
TimeoutException - if the condition does not evaluate to false after SWTBotPreferences.TIMEOUT milliseconds.
public void waitWhile(ICondition condition,
long timeout)
throws TimeoutException
condition - the condition to be evaluated.timeout - the timeout.
TimeoutException - if the condition does not evaluate to false after timeout milliseconds.
public void waitWhile(ICondition condition,
long timeout,
long interval)
throws TimeoutException
condition - the condition to be evaluated.timeout - the timeout.interval - The delay time.
TimeoutException - if the condition does not evaluate to false after timeout milliseconds.public void sleep(long millis)
millis - the time in milliseconds for which to sleep.public Display getDisplay()
public boolean captureScreenshot(String fileName)
fileName - the filename to save screenshot to.
true if the screenshot was created and saved, false otherwise.SWTUtils.captureScreenshot(String)public Finder getFinder()
public Control getFocusedWidget()
null if keyboard events are not currently
going to any of the controls built by the currently running application.
nullDisplay.getFocusControl()public SWTBotTrayItem trayItem()
SWTBotTrayItempublic SWTBotTrayItem trayItem(int index)
index - he index of the tray item.
SWTBotTrayItem at specified indexpublic SWTBotTrayItem trayItemWithTooltip(String tooltip)
tooltip - the tooltip on the tray item.
SWTBotTrayItem with the specified tooltip.
public SWTBotTrayItem trayItemWithTooltip(String tooltip,
int index)
tooltip - the tooltip on the tray item.index - the index of the tray item.
SWTBotTrayItem with the specified tooltip.public List<SWTBotTrayItem> trayItems()
public List<SWTBotTrayItem> trayItems(org.hamcrest.Matcher<?> matcher)
matcher - the matcher used to match tray item
SWTBotTrayItem matching the matcher.protected Tray systemTray()
public <T> T performWithTimeout(Result<T> runnable,
long timeout)
This is a convenience api for performing a particular operation with a different timeout:
long timeout = ...;
long old = SWTBotPreferences.TIMEOUT;
SWTBotPreferences.TIMEOUT = timeout;
try {
// do something that takes very long
return aNumber;
} finally {
SWTBotPreferences.TIMEOUT = old;
}
The above can now be written as:
performWithTimeout(new Result() { public Integer run() { // do something that takes very long } }, timeout);
runnable - the runnable to execute.timeout - the timeout for performing the operation.
public void performWithTimeout(VoidResult runnable,
long timeout)
runnable - the runnable to execute.timeout - the timeout for performing the operation.for more information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||