本文整理汇总了Java中org.eclipse.swtbot.swt.finder.widgets.SWTBotTable.click方法的典型用法代码示例。如果您正苦于以下问题:Java SWTBotTable.click方法的具体用法?Java SWTBotTable.click怎么用?Java SWTBotTable.click使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swtbot.swt.finder.widgets.SWTBotTable
的用法示例。
在下文中一共展示了SWTBotTable.click方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addFourOrdersToOrdersOverview
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
private void addFourOrdersToOrdersOverview() {
SWTBotView view = wbBot.partById(BaseSWTBotTest.PART_ID_ORDER_OVERVIEW);
view.toolbarButton("Search Order").click();
SWTBotText text = bot.textWithLabel("&Order Number");
text.typeText("Order");
bot.buttonWithTooltip("Start Search").click();
// Select Item in Table
SWTBotTable table = bot.table();
totalPersistedOrders = table.rowCount();
table.click(0, 5);
bot.sleep(100);
table.click(1, 5);
bot.sleep(100);
table.click(3, 5);
bot.sleep(100);
table.click(5, 5);
bot.sleep(100);
// click Finish
bot.button("OK").click();
}
示例2: clickOnTableCellValue
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
/**
* Click on all table cells in column {@code col} with the contents {@code value}. Selection
* should be the last cell clicked upon.
*/
public static void clickOnTableCellValue(SWTBotTable table, int col, String value) {
String column = table.columns().get(col);
for (int row = 0; row < table.rowCount(); row++) {
String cellValue = table.cell(row, column);
if (cellValue.equals(value)) {
table.click(row, col);
break;
}
}
}
示例3: selectOrderAndGenerateDocu
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
/**
*
* @param table
* @param rowindex
*/
public void selectOrderAndGenerateDocu(final int rowindex) {
SWTBotTable table = bot.table();
table.click(rowindex, 5);
bot.sleep(100);
scenariooWriterHelper.writeStep("order_" + rowindex + "_selected", PageName.SEARCH_DIALOG, screenshot());
}
示例4: createOrderTemp
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
private void createOrderTemp() {
// add new Order, As we don't want to interfere with other test cases
bot.toolbarButtonWithTooltip("Create Order").click();
SWTBotText text = bot.textWithLabel("&Order Number");
text.typeText(ORDER_NUMBER_TEMP);
bot.button("Next >").click();
bot.buttonWithTooltip("Add Position").click();
// Select Item in Table
SWTBotTable table = bot.table();
// Position Amount
table.click(0, 4);
bot.sleep(100);
bot.text(1).setText("2");
// Select Item
bot.table().click(0, 2);
bot.sleep(100);
bot.ccomboBox(0).setSelection(13);
// loose Focus
table.click(0, 3);
bot.sleep(100);
// click Finish
bot.button("Finish").click();
bot.sleep(500);
LOGGER.info("\n"
+ "-----------------------------------------------------------------\n"
+ "create temp order rule : order " + ORDER_NUMBER_TEMP + " created.\n"
+ "-----------------------------------------------------------------\n\n");
}
示例5: selectItemForFirstRowAndGenerateDocu
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
/**
* @param table
*/
private void selectItemForFirstRowAndGenerateDocu(final SWTBotTable table) {
bot.table().click(0, 2);
bot.sleep(100);
bot.ccomboBox(0).setSelection(6);
table.click(0, 3); // Input is accepted after focus lost
bot.sleep(100);
scenariooWriterHelper.writeStep("item_selected", PageName.ORDER_NEW_2, screenshot());
}
示例6: enterAmountForFirstRowAndGenerateDocu
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
/**
* @return
*/
private SWTBotTable enterAmountForFirstRowAndGenerateDocu() {
// Select Item in Table
SWTBotTable table = bot.table();
table.click(0, 4);
bot.text(1).setText("3");
bot.sleep(100);
table.click(0, 3); // Input is accepted after focus lost
bot.sleep(100);
scenariooWriterHelper.writeStep("position_count_entered", PageName.ORDER_NEW_2, screenshot());
return table;
}
示例7: clickOnTableCellValue
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
public static void clickOnTableCellValue(SWTBotTable table, int col, String value) {
String column = table.columns().get(col);
for (int row = 0; row < table.rowCount(); row++) {
String cellValue = table.cell(row, column);
if (cellValue.equals(value)) {
table.click(row, col);
break;
}
}
}
示例8: leaveEditingCellClickingOnAnotherCell
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; //导入方法依赖的package包/类
private void leaveEditingCellClickingOnAnotherCell(SWTBotTable table, int row) {
table.click(row, 0);
}