本文整理汇总了Java中org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.bot方法的典型用法代码示例。如果您正苦于以下问题:Java SWTBotShell.bot方法的具体用法?Java SWTBotShell.bot怎么用?Java SWTBotShell.bot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swtbot.swt.finder.widgets.SWTBotShell
的用法示例。
在下文中一共展示了SWTBotShell.bot方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getGraphmlProperties
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; //导入方法依赖的package包/类
public GraphModelProperties getGraphmlProperties(String folder, String pkg, String filename) {
SWTBotTreeItem pti = getProjectTreeItem(this.projectName);
pti.expand();
SWTBotTreeItem fileItem = null;
if (pkg == null) {
fileItem = pti.expandNode(folder, filename);
} else {
fileItem = pti.expandNode(folder, pkg, filename);
}
bot.waitUntil(new isItemExpandedInTree(pti.getNode(folder)));
fileItem.setFocus();
fileItem.select();
bot.waitUntil(new isItemSelectedInTree(fileItem));
fileItem.click();
bot.waitUntil(new isItemSelected(fileItem));
SWTBotMenu fileMenu = bot.menu("File");
fileMenu.menu("Properties").click();
bot.waitUntil(Conditions.shellIsActive("Properties for " + filename));
SWTBotShell shell = bot.shell("Properties for " + filename);
GraphModelProperties gp = new GraphModelProperties(shell.bot(), this.projectName, folder, pkg, filename);
return gp;
}
示例2: getBot
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; //导入方法依赖的package包/类
/**
* Creates an SWTBot for the dialog's shell, not for the test shell.
*/
@Override
protected SWTBot getBot() {
// Get the shell for the dialog, then return its associated bot.
for (SWTBotShell shell : super.getBot().shells()) {
if (shell.widget == dialog.getShell()) {
return shell.bot();
}
}
return null;
}
示例3: GraphWalkerTestHookPageTest
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; //导入方法依赖的package包/类
public GraphWalkerTestHookPageTest(SWTBotShell shell) {
super();
this.shell = shell;
this.bot = shell.bot();
}
示例4: JUnitGraphWalkerTestUIPageTest
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; //导入方法依赖的package包/类
public JUnitGraphWalkerTestUIPageTest(SWTBotShell shell) {
super();
this.shell = shell;
this.bot = shell.bot();
}
示例5: ConvertDialog
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; //导入方法依赖的package包/类
public ConvertDialog(SWTBotShell shell) {
super();
this.shell = shell;
this.bot = shell.bot();
}
示例6: GraphWalkerTestUIPageTest
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; //导入方法依赖的package包/类
public GraphWalkerTestUIPageTest(SWTBotShell shell) {
super();
this.shell = shell;
this.bot = shell.bot();
}
示例7: OfflineTestUIPageTest
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell; //导入方法依赖的package包/类
public OfflineTestUIPageTest(SWTBotShell shell) {
super();
this.shell = shell;
this.bot = shell.bot();
}