本文整理汇总了Java中org.sikuli.script.FindFailed.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java FindFailed.getMessage方法的具体用法?Java FindFailed.getMessage怎么用?Java FindFailed.getMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.sikuli.script.FindFailed
的用法示例。
在下文中一共展示了FindFailed.getMessage方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRegion
import org.sikuli.script.FindFailed; //导入方法依赖的package包/类
private Region getRegion(String imageFilePath) throws QTasteTestFailException {
try {
return Screen.all().find(loadImageFromPath(imageFilePath));
} catch (FindFailed ex) {
throw new QTasteTestFailException("Cannot find the image on screen : " + ex.getMessage(), ex);
}
}
示例2: wait
import org.sikuli.script.FindFailed; //导入方法依赖的package包/类
@Override
public void wait(String fileName, double timeout) throws QTasteException {
try {
Screen.all().wait(loadImageFromPath(fileName), timeout);
} catch (FindFailed ex) {
throw new QTasteTestFailException("Cannot find the image on screen : " + ex.getMessage(), ex);
}
}
示例3: dragDrop
import org.sikuli.script.FindFailed; //导入方法依赖的package包/类
@Override
public void dragDrop(String targetFileName, String destinationFileName) throws QTasteException {
try {
Screen.all().dragDrop(loadImageFromPath(targetFileName), loadImageFromPath(destinationFileName));
} catch (FindFailed ex) {
throw new QTasteTestFailException("Cannot execute the Drag And Drop command : " + ex.getMessage(), ex);
}
}
示例4: type
import org.sikuli.script.FindFailed; //导入方法依赖的package包/类
@Override
public void type(String fileName, String value) throws QTasteException {
try {
Screen.all().type(loadImageFromPath(fileName), value);
} catch (FindFailed ex) {
throw new QTasteTestFailException("Cannot execute the type command : " + ex.getMessage(), ex);
}
}
示例5: paste
import org.sikuli.script.FindFailed; //导入方法依赖的package包/类
@Override
public void paste(String fileName, String value) throws QTasteException {
try {
Screen.all().paste(loadImageFromPath(fileName), value);
} catch (FindFailed ex) {
throw new QTasteTestFailException("Cannot execute the type command : " + ex.getMessage(), ex);
}
}
示例6: handleFindFailed
import org.sikuli.script.FindFailed; //导入方法依赖的package包/类
private void handleFindFailed(boolean remote, FindFailed e) {
this.captureScreenshotInError(remote);
SikuliLogger.logDebug(e.getStackTrace());
throw new RuntimeException(e.getMessage());
}